|  | 
| 138 | 138 |  * @see JsonGeneratorFactory | 
| 139 | 139 |  */ | 
| 140 | 140 | public interface JsonGenerator extends Flushable, /*Auto*/Closeable { | 
| 141 |  | -    /** | 
| 142 |  | -     * Configuration property to generate JSON prettily. All providers | 
| 143 |  | -     * must support this property. The value of the property could be | 
| 144 |  | -     * be anything. | 
| 145 |  | -     */ | 
| 146 |  | -    String PRETTY_PRINTING = "jakarta.json.stream.JsonGenerator.prettyPrinting" ; | 
| 147 | 141 | 
 | 
| 148 | 142 |     /** | 
| 149 | 143 |      * Writes the JSON start object character. It starts a new child object | 
| @@ -336,7 +330,9 @@ public interface JsonGenerator extends Flushable, /*Auto*/Closeable { | 
| 336 | 330 |      * @return this generator | 
| 337 | 331 |      * @throws jakarta.json.JsonException if an i/o error occurs (IOException | 
| 338 | 332 |      * would be cause of JsonException) | 
| 339 |  | -     * @throws NumberFormatException if the value is Not-a-Number (NaN) or infinity. | 
|  | 333 | +     * @throws NumberFormatException if the value is Not-a-Number (NaN) or infinity | 
|  | 334 | +     *      when {@link jakarta.json.JsonConfig#WRITE_NAN_AS_NULLS} and/or | 
|  | 335 | +     *      {@link jakarta.json.JsonConfig#WRITE_NAN_AS_STRINGS} is not set. | 
| 340 | 336 |      * @throws JsonGenerationException if this method is not called within an | 
| 341 | 337 |      *      object context | 
| 342 | 338 |      */ | 
| @@ -485,7 +481,9 @@ public interface JsonGenerator extends Flushable, /*Auto*/Closeable { | 
| 485 | 481 |      * would be cause of JsonException) | 
| 486 | 482 |      * @throws JsonGenerationException if this method is not called within an | 
| 487 | 483 |      *      array or root context. | 
| 488 |  | -     * @throws NumberFormatException if the value is Not-a-Number (NaN) or infinity. | 
|  | 484 | +     * @throws NumberFormatException if the value is Not-a-Number (NaN) or infinity | 
|  | 485 | +     *      when {@link jakarta.json.JsonConfig#WRITE_NAN_AS_NULLS} and/or | 
|  | 486 | +     *      {@link jakarta.json.JsonConfig#WRITE_NAN_AS_STRINGS} is not set. | 
| 489 | 487 |      */ | 
| 490 | 488 |     JsonGenerator write(double value); | 
| 491 | 489 | 
 | 
|  | 
0 commit comments