Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Nov 30, 2023
1 parent 8a3fa23 commit 46eedc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ final class FieldReader {
private static List<String> initAliases(Element element) {
return AliasPrism.getOptionalOn(element)
.map(a -> Util.escapeQuotes(a.value()))
.orElse(JsonAliasPrism.getOptionalOn(element)
.map(a -> Util.escapeQuotes(a.value()))
.orElse(Collections.emptyList()));
.orElse(Collections.emptyList());
}

void position(int pos) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
@GeneratePrism(io.avaje.jsonb.Json.Import.class)
@GeneratePrism(value = io.avaje.jsonb.Json.Import.List.class, name = "ImportListPrism")
@GeneratePrism(io.avaje.jsonb.Json.Alias.class)
@GeneratePrism(io.avaje.jsonb.Json.JsonAlias.class)
@GeneratePrism(io.avaje.jsonb.Json.Ignore.class)
@GeneratePrism(io.avaje.jsonb.Json.Property.class)
@GeneratePrism(io.avaje.jsonb.Json.MixIn.class)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.avaje.jsonb.generator.models.valid;

import io.avaje.jsonb.Json.JsonAlias;
import io.avaje.jsonb.Json;

public class Example2Packet extends Packet {

private final String ids;
@JsonAlias("long-ring-long-land")
@Json.Alias("long-ring-long-land")
private Long longy;

public Example2Packet(String ids, Long longy) {
Expand Down

0 comments on commit 46eedc2

Please sign in to comment.