Skip to content

Commit 5a8ed08

Browse files
committed
Minor javadoc comment cleanup
1 parent 46ab0fc commit 5a8ed08

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/main/java/com/fasterxml/jackson/core/JsonGenerator.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,15 @@ public enum Feature {
241241
*/
242242
IGNORE_UNKNOWN(false),
243243

244+
// // Misc other
245+
244246
/**
245-
* Feature that determines whether to use standard Java code to write floats/doubles (default) or
246-
* use the Schubfach algorithm which is faster. The latter approach may lead to small
247-
* differences in the precision of the float/double that is written to the JSON output.
247+
* Alias for {@link com.fasterxml.jackson.core.StreamWriteFeature#USE_FAST_DOUBLE_WRITER} instead
248248
*
249249
* @since 2.14
250+
* @deprecated Use {@link com.fasterxml.jackson.core.StreamWriteFeature#USE_FAST_DOUBLE_WRITER} instead
250251
*/
252+
@Deprecated
251253
USE_FAST_DOUBLE_WRITER(false)
252254
;
253255

src/main/java/com/fasterxml/jackson/core/StreamWriteFeature.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,19 @@ public enum StreamWriteFeature
111111
*/
112112
IGNORE_UNKNOWN(JsonGenerator.Feature.IGNORE_UNKNOWN),
113113

114+
// // Misc other features
115+
114116
/**
115-
* Feature that determines whether to use standard Java code to write floats/doubles (default) or
116-
* use the Schubfach algorithm which is faster. The latter approach may lead to small
117-
* differences in the precision of the float/double that is written to the JSON output.
117+
* Feature that determines whether to use standard Java code to write floats/doubles
118+
* (default) or use the Schubfach algorithm which is faster.
119+
* The latter approach may lead to small differences in the precision of the
120+
* float/double that is written to the JSON output.
121+
*<p>
122+
* Feature is disabled by default, meaning that slower JDK default conversions are used.
118123
*
119124
* @since 2.14
120125
*/
126+
@SuppressWarnings("deprecation")
121127
USE_FAST_DOUBLE_WRITER(JsonGenerator.Feature.USE_FAST_DOUBLE_WRITER)
122128
;
123129

0 commit comments

Comments
 (0)