Skip to content

Commit 3b7f0dc

Browse files
committed
Improve javadoc for Jsonb adapter() methods
1 parent 5b0fbcd commit 3b7f0dc

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

jsonb/src/main/java/io/avaje/jsonb/Jsonb.java

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,6 @@ static Builder newBuilder() {
131131
*/
132132
<T> JsonType<T> typeOf(Object value);
133133

134-
/**
135-
* Return the JsonAdapter used to read and write json for the given class.
136-
*/
137-
<T> JsonAdapter<T> adapter(Class<T> cls);
138-
139-
/**
140-
* Return the JsonAdapter used to read and write json for the given type.
141-
*/
142-
<T> JsonAdapter<T> adapter(Type type);
143-
144134
/**
145135
* Return the JsonReader used to read the given json content.
146136
*/
@@ -179,6 +169,22 @@ static Builder newBuilder() {
179169
*/
180170
PropertyNames properties(String... names);
181171

172+
/**
173+
* Return the JsonAdapter used to read and write json for the given class.
174+
* <p>
175+
* JsonAdapter is generally used by generated code and your application code
176+
* is expected to use {@link Jsonb#type(Class)} and {@link JsonType} instead.
177+
*/
178+
<T> JsonAdapter<T> adapter(Class<T> cls);
179+
180+
/**
181+
* Return the JsonAdapter used to read and write json for the given type.
182+
* <p>
183+
* JsonAdapter is generally used by generated code and your application code
184+
* is expected to use {@link Jsonb#type(Type)} and {@link JsonType} instead.
185+
*/
186+
<T> JsonAdapter<T> adapter(Type type);
187+
182188
/**
183189
* Build the Jsonb instance adding JsonAdapter, Factory or AdapterBuilder.
184190
*/

0 commit comments

Comments
 (0)