Skip to content

Commit 362c22e

Browse files
authored
minor wording changes (#316)
Signed-off-by: David Kral <david.k.kral@oracle.com>
1 parent b916884 commit 362c22e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/main/java/jakarta/json/bind/annotation/JsonbTypeInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* class Dog implements Animal {}
3434
* class Cat implements Animal {}
3535
* </code></pre>
36-
* This annotation is tightly bound to {@link JsonbSubtype}. It is recommended to use
36+
* This annotation is tightly bound to {@link JsonbSubtype}. It is required to use
3737
* {@link JsonbSubtype} annotations to specify all the possible classes and their aliases.
3838
*/
3939
@JsonbAnnotation

spec/src/main/asciidoc/jsonb.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ If a required field for a parameter mapping does not exist in the JSON document,
699699

700700
[[optional-parameter-values]]
701701
==== Optional parameter values
702-
When a property is marked as optional, the proper default should be used. If the parameter is any type other than `Optional` or its variations, then the `null` value is used. If the parameter is `Optional` or its variations, then the corresponding empty object must be used.
702+
When a property is marked as optional, the proper default should be used. If the parameter is any type other than `Optional` or its variations, then the `null` value is used. If the parameter is `java.util.Optional`, `OptionalInt`, `OptionalLong`, `OptionalDouble`, then the corresponding empty object must be used.
703703

704704
Primitive types cannot accept `null` values, so a corresponding value is required as listed in the following table:
705705

0 commit comments

Comments
 (0)