Skip to content

Commit f950c0f

Browse files
authored
Merge pull request #210 from aguibert/propNamingStrat-doc-typo
Fix incorrect reference to PROPERTY_NAMING_STRATEGY
2 parents 419c287 + 07fdc25 commit f950c0f

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

api/src/main/java/javax/json/bind/JsonbConfig.java

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public final Map<String, Object> getAsMap() {
190190
* Property used to specify whether or not the serialized JSON data is formatted
191191
* with linefeeds and indentation.
192192
*
193-
* Configures value of {@code FORMATTING} property.
193+
* Configures value of {@link #FORMATTING} property.
194194
*
195195
* @param formatted
196196
* True means serialized data is formatted, false (default)
@@ -205,7 +205,7 @@ public final JsonbConfig withFormatting(final Boolean formatted) {
205205
/**
206206
* Property used to specify whether null values should be serialized to JSON document or skipped.
207207
*
208-
* Configures value of {@code NULL_VALUES} property.
208+
* Configures value of {@link #NULL_VALUES} property.
209209
*
210210
* @param serializeNullValues
211211
* True means that null values will be serialized into JSON document,
@@ -222,7 +222,7 @@ public final JsonbConfig withNullValues(final Boolean serializeNullValues) {
222222
* for encoding of JSON data. For input data (fromJson), selected encoding is used if
223223
* the encoding cannot be detected automatically. Default value is 'UTF-8'.
224224
*
225-
* Configures value of {@code ENCODING} property.
225+
* Configures value of {@link #ENCODING} property.
226226
*
227227
* @param encoding
228228
* Valid character encoding as defined in the
@@ -238,7 +238,7 @@ public final JsonbConfig withEncoding(final String encoding) {
238238
/**
239239
* Property used to specify whether strict I-JSON serialization compliance should be enforced.
240240
*
241-
* Configures value of {@code STRICT_IJSON} property.
241+
* Configures value of {@link #STRICT_IJSON} property.
242242
*
243243
* @param enabled
244244
* True means data is serialized in strict compliance according to RFC 7493.
@@ -252,7 +252,7 @@ public final JsonbConfig withStrictIJSON(final Boolean enabled) {
252252
/**
253253
* Property used to specify custom naming strategy.
254254
*
255-
* Configures value of {@code JSONB_PROPERTY_NAMING_STRATEGY} property.
255+
* Configures value of {@link #PROPERTY_NAMING_STRATEGY} property.
256256
*
257257
* @param propertyNamingStrategy
258258
* Custom naming strategy which affects serialization and deserialization.
@@ -266,7 +266,7 @@ public final JsonbConfig withPropertyNamingStrategy(final PropertyNamingStrategy
266266
/**
267267
* Property used to specify custom naming strategy.
268268
*
269-
* Configures value of {@code JSONB_PROPERTY_NAMING_STRATEGY} property.
269+
* Configures value of {@link #PROPERTY_NAMING_STRATEGY} property.
270270
*
271271
* @param propertyNamingStrategy
272272
* Predefined naming strategy which affects serialization and deserialization.
@@ -280,7 +280,7 @@ public final JsonbConfig withPropertyNamingStrategy(final String propertyNamingS
280280
/**
281281
* Property used to specify property order strategy.
282282
*
283-
* Configures values of {@code JSONB_PROPERTY_ORDER_STRATEGY} property.
283+
* Configures values of {@link #PROPERTY_ORDER_STRATEGY} property.
284284
*
285285
* @param propertyOrderStrategy
286286
* Predefined property order strategy which affects serialization.
@@ -294,7 +294,7 @@ public final JsonbConfig withPropertyOrderStrategy(final String propertyOrderStr
294294
/**
295295
* Property used to specify custom property visibility strategy.
296296
*
297-
* Configures value of {@code PROPERTY_VISIBILITY_STRATEGY} property.
297+
* Configures value of {@link #PROPERTY_VISIBILITY_STRATEGY} property.
298298
*
299299
* @param propertyVisibilityStrategy
300300
* Custom property visibility strategy which affects serialization and deserialization.
@@ -309,7 +309,7 @@ public final JsonbConfig withPropertyVisibilityStrategy(final PropertyVisibility
309309
/**
310310
* Property used to specify custom mapping adapters.
311311
*
312-
* Configures value of {@code ADAPTERS} property.
312+
* Configures value of {@link #ADAPTERS} property.
313313
*
314314
* Calling withAdapters more than once will merge the adapters with previous value.
315315
*
@@ -326,7 +326,7 @@ public final JsonbConfig withAdapters(final JsonbAdapter... adapters) {
326326
/**
327327
* Property used to specify custom serializers.
328328
*
329-
* Configures value of {@code SERIALIZERS} property.
329+
* Configures value of {@link #SERIALIZERS} property.
330330
*
331331
* Calling withSerializers more than once will merge the serializers with previous value.
332332
*
@@ -343,7 +343,7 @@ public final JsonbConfig withSerializers(final JsonbSerializer... serializers) {
343343
/**
344344
* Property used to specify custom deserializers.
345345
*
346-
* Configures value of {@code DESERIALIZERS} property.
346+
* Configures value of {@link #DESERIALIZERS} property.
347347
*
348348
* Calling withDeserializers more than once will merge the deserializers with previous value.
349349
*
@@ -360,7 +360,7 @@ public final JsonbConfig withDeserializers(final JsonbDeserializer... deserializ
360360
/**
361361
* Property used to specify custom binary data strategy.
362362
*
363-
* Configures value of {@code BINARY_DATA_STRATEGY} property.
363+
* Configures value of {@link #BINARY_DATA_STRATEGY} property.
364364
*
365365
* @param binaryDataStrategy
366366
* Custom binary data strategy which affects serialization and deserialization.
@@ -375,10 +375,12 @@ public final JsonbConfig withBinaryDataStrategy(final String binaryDataStrategy)
375375
* Property used to specify custom date format. This format will be used by default for all date classes
376376
* serialization and deserialization.
377377
*
378+
* Configures values of {@link #DATE_FORMAT} and {@link #LOCALE} properties.
379+
*
378380
* @param dateFormat
379381
* Custom date format as specified in {@link java.time.format.DateTimeFormatter}.
380382
* @param locale
381-
* Locale, default is null.
383+
* Locale, if null is specified {@link Locale#getDefault} will be used.
382384
* @return This JsonbConfig instance.
383385
*/
384386
public final JsonbConfig withDateFormat(final String dateFormat, final Locale locale) {
@@ -389,6 +391,8 @@ public final JsonbConfig withDateFormat(final String dateFormat, final Locale lo
389391
/**
390392
* Property used to specify custom locale.
391393
*
394+
* Configures value of {@link #LOCALE} property.
395+
*
392396
* @param locale
393397
* Locale, must not be null.
394398
* @return This JsonbConfig instance.

0 commit comments

Comments
 (0)