Skip to content

Commit

Permalink
Minor improvement to earlier #412 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 26, 2014
1 parent 1bed6c2 commit cf2fcfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void serializeValue(JsonGenerator jgen, Object value, JavaType rootType)
wrap = _config.isEnabled(SerializationFeature.WRAP_ROOT_VALUE);
if (wrap) {
jgen.writeStartObject();
jgen.writeFieldName(_rootNames.findRootName(value.getClass(), _config));
jgen.writeFieldName(_rootNames.findRootName(rootType, _config));
}
} else if (rootName.length() == 0) {
wrap = false;
Expand Down

0 comments on commit cf2fcfe

Please sign in to comment.