File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
jsonb-generator/src/main/java/io/avaje/jsonb/generator
jsonb/src/main/java/io/avaje/jsonb Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ final class Constants {
66 static final String JSONB = "io.avaje.jsonb.Jsonb" ;
77 static final String JSON = "io.avaje.jsonb.Json" ;
88 static final String JSON_IMPORT = "io.avaje.jsonb.Json.Import" ;
9- static final String JSON_IMPORT_LIST = "io.avaje.jsonb.Json.Import.List " ;
9+ static final String JSON_IMPORT_LIST = "io.avaje.jsonb.Json.Import.Imports " ;
1010 static final String JSON_MIXIN = "io.avaje.jsonb.Json.MixIn" ;
1111 static final String IOEXCEPTION = "java.io.IOException" ;
1212 static final String METHODHANDLE = "java.lang.invoke.MethodHandle" ;
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ private void writeAdaptersForMixInTypes(Set<? extends Element> mixInElements) {
245245
246246 private void writeAdaptersForImportedList (Set <? extends Element > imported ) {
247247 imported .stream ()
248- .flatMap (e -> ImportListPrism .getInstanceOn (e ).value ().stream ())
248+ .flatMap (e -> ImportsPrism .getInstanceOn (e ).value ().stream ())
249249 .forEach (this ::addImported );
250250 }
251251
Original file line number Diff line number Diff line change 11@ GeneratePrism (io .avaje .jsonb .CustomAdapter .class )
22@ GeneratePrism (io .avaje .jsonb .Json .class )
33@ GeneratePrism (io .avaje .jsonb .Json .Import .class )
4- @ GeneratePrism (value = io .avaje .jsonb .Json .Import .List .class , name = "ImportListPrism" )
4+ @ GeneratePrism (io .avaje .jsonb .Json .Import .Imports .class )
55@ GeneratePrism (io .avaje .jsonb .Json .Alias .class )
66@ GeneratePrism (io .avaje .jsonb .Json .Creator .class )
77@ GeneratePrism (io .avaje .jsonb .Json .Ignore .class )
Original file line number Diff line number Diff line change 1313import java .lang .annotation .Retention ;
1414import java .lang .annotation .Target ;
1515
16- import io .avaje .jsonb .Json .Import .List ;
16+ import io .avaje .jsonb .Json .Import .Imports ;
1717
1818/**
1919 * Marks a type for JSON support.
7373 * }</pre>
7474 */
7575 @ Retention (SOURCE )
76- @ Repeatable (List .class )
76+ @ Repeatable (Imports .class )
7777 @ Target ({TYPE , PACKAGE , MODULE })
7878 @interface Import {
7979
9696 */
9797 @ Retention (SOURCE )
9898 @ Target ({TYPE , PACKAGE , MODULE })
99- @interface List {
99+ @interface Imports {
100100
101101 Import [] value ();
102102 }
You can’t perform that action at this time.
0 commit comments