Skip to content

Commit

Permalink
android support
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jul 22, 2022
1 parent d8ef781 commit acbc7d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ObjectWriterImplBoolValueArray

@Override
public void writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
if (jsonWriter.isWriteTypeInfo(object)) {
if (jsonWriter.isWriteTypeInfo(object, fieldType, features)) {
jsonWriter.writeTypeName(JSONB_TYPE_NAME_BYTES, JSONB_TYPE_HASH);
}
jsonWriter.writeBool((boolean[]) object);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class ObjectWriterImplCharValueArray

@Override
public void writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
if (jsonWriter.isWriteTypeInfo(object)) {
if (jsonWriter.isWriteTypeInfo(object, fieldType, features)) {
jsonWriter.writeTypeName(JSONB_TYPE_NAME_BYTES, JSONB_TYPE_HASH);
}
jsonWriter.writeString((char[]) object);
Expand Down

0 comments on commit acbc7d4

Please sign in to comment.