Skip to content

Commit

Permalink
getFieldValue() should return the value of fieldValue without transfo…
Browse files Browse the repository at this point in the history
…rming it into a String (#720)

`ObjectAppendingMarker#getFieldValue()` should ideally return the value of the `fieldValue` property without transformation. This method is intended to be used by `SingleFieldAppendingMarker#tselfToString()` that already takes care of converting the value into a String.

closes #719
  • Loading branch information
brenuart authored Jan 5, 2022
1 parent 8502ddc commit 1e60f21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ protected void writeFieldValue(JsonGenerator generator) throws IOException {
}

@Override
public Object getFieldValue() {
return StructuredArguments.toString(fieldValue);
protected Object getFieldValue() {
return fieldValue;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected void writeFieldValue(JsonGenerator generator) throws IOException {
}

@Override
public Object getFieldValue() {
protected Object getFieldValue() {
return rawJson;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public String toStringSelf() {
*
* @return the field value
*/
public abstract Object getFieldValue();
protected abstract Object getFieldValue();

@Override
public boolean equals(Object obj) {
Expand Down

0 comments on commit 1e60f21

Please sign in to comment.