Skip to content

Commit a7ed2ff

Browse files
committed
Update feature for WRITE_BIGDECIMAL_AS_PLAIN.
1 parent 747842a commit a7ed2ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/fge/jackson/JacksonUtils.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
package com.github.fge.jackson;
2121

2222
import com.fasterxml.jackson.core.JsonGenerationException;
23+
import com.fasterxml.jackson.core.JsonGenerator;
2324
import com.fasterxml.jackson.databind.DeserializationFeature;
2425
import com.fasterxml.jackson.databind.JsonMappingException;
2526
import com.fasterxml.jackson.databind.JsonNode;
@@ -142,7 +143,7 @@ public static String prettyPrint(final JsonNode node)
142143
*
143144
* <ul>
144145
* <li>{@link DeserializationFeature#USE_BIG_DECIMAL_FOR_FLOATS};</li>
145-
* <li>{@link SerializationFeature#WRITE_BIGDECIMAL_AS_PLAIN};</li>
146+
* <li>{@link JsonGenerator.Feature#WRITE_BIGDECIMAL_AS_PLAIN};</li>
146147
* <li>{@link SerializationFeature#INDENT_OUTPUT}.</li>
147148
* </ul>
148149
*
@@ -154,7 +155,7 @@ public static ObjectMapper newMapper()
154155
{
155156
return new ObjectMapper().setNodeFactory(FACTORY)
156157
.enable(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS)
157-
.enable(SerializationFeature.WRITE_BIGDECIMAL_AS_PLAIN)
158+
.enable(JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN)
158159
.enable(SerializationFeature.INDENT_OUTPUT);
159160
}
160161
}

0 commit comments

Comments
 (0)