File tree Expand file tree Collapse file tree 5 files changed +3
-27
lines changed
main/java/io/avaje/jsonb/generator
test/java/io/avaje/jsonb/generator/models/valid
jsonb/src/main/java/io/avaje/jsonb Expand file tree Collapse file tree 5 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,7 @@ private void initAliases(Element element) {
74
74
var alias =
75
75
AliasPrism .getOptionalOn (element )
76
76
.map (a -> Util .escapeQuotes (a .value ()))
77
- .orElse (
78
- JsonAliasPrism .getOptionalOn (element )
79
- .map (a -> Util .escapeQuotes (a .value ()))
80
- .orElse (Collections .emptyList ()));
77
+ .orElse (Collections .emptyList ());
81
78
82
79
aliases .addAll (alias );
83
80
}
Original file line number Diff line number Diff line change 4
4
@ GeneratePrism (value = io .avaje .jsonb .Json .Import .List .class , name = "ImportListPrism" )
5
5
@ GeneratePrism (io .avaje .jsonb .Json .Alias .class )
6
6
@ GeneratePrism (io .avaje .jsonb .Json .Creator .class )
7
- @ GeneratePrism (io .avaje .jsonb .Json .JsonAlias .class )
8
7
@ GeneratePrism (io .avaje .jsonb .Json .Ignore .class )
9
8
@ GeneratePrism (io .avaje .jsonb .Json .Property .class )
10
9
@ GeneratePrism (io .avaje .jsonb .Json .MixIn .class )
Original file line number Diff line number Diff line change 1
1
package io .avaje .jsonb .generator .models .valid ;
2
2
3
- import io .avaje .jsonb .Json . JsonAlias ;
3
+ import io .avaje .jsonb .Json ;
4
4
5
5
public class Example2Packet extends Packet {
6
6
7
7
private final String ids ;
8
- @ JsonAlias ("long-ring-long-land" )
8
+ @ Json . Alias ("long-ring-long-land" )
9
9
private Long longy ;
10
10
11
11
public Example2Packet (String ids , Long longy ) {
Original file line number Diff line number Diff line change 139
139
String [] value ();
140
140
}
141
141
142
- /**
143
- * Deprecated - migrate to {@link Json.Alias}.
144
- */
145
- @ Deprecated
146
- @ Retention (CLASS )
147
- @ Target (FIELD )
148
- @interface JsonAlias {
149
-
150
- /** One or more secondary names to accept as aliases to the official name. */
151
- String [] value ();
152
- }
153
-
154
142
/**
155
143
* Exclude the property from serialization, deserialization or both.
156
144
* <p>
Original file line number Diff line number Diff line change @@ -109,14 +109,6 @@ static Builder builder() {
109
109
return DefaultBootstrap .builder ();
110
110
}
111
111
112
- /**
113
- * Migrate to builder().
114
- */
115
- @ Deprecated
116
- static Builder newBuilder () {
117
- return builder ();
118
- }
119
-
120
112
/**
121
113
* Return json content for the given object.
122
114
* <p>
You can’t perform that action at this time.
0 commit comments