Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder authored and pjankovsky committed Jun 25, 2019
1 parent 290658f commit 2dbad66
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public void writeString(String text) throws IOException,JsonGenerationException
_verifyValueWrite("write String value");
Character style = STYLE_QUOTED;
if (Feature.MINIMIZE_QUOTES.enabledIn(_formatFeatures) && !isBooleanContent(text)) {
// If this string could be interpreted as a number, it must be quoted.
// If this string could be interpreted as a number, it must be quoted.
if (Feature.ALWAYS_QUOTE_NUMBERS_AS_STRINGS.enabledIn(_formatFeatures)
&& PLAIN_NUMBER_P.matcher(text).matches()) {
style = STYLE_QUOTED;
Expand Down Expand Up @@ -784,7 +784,7 @@ public void writeObjectId(Object id)
throws IOException
{
// should we verify there's no preceding id?
_objectId = String.valueOf(id);
_objectId = (id == null) ? null : String.valueOf(id);
}

/*
Expand Down

0 comments on commit 2dbad66

Please sign in to comment.