Skip to content

Commit

Permalink
Remove unnecessary call
Browse files Browse the repository at this point in the history
  • Loading branch information
nezihyigitbasi authored and cberner committed Mar 6, 2015
1 parent d5bf273 commit 9575cb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ public void addBinary(Binary value)
writeFieldNameIfSet(generator, fieldName);
// todo don't assume binary is a utf-8 string
byte[] bytes = value.getBytes();
generator.writeUTF8String(value.getBytes(), 0, bytes.length);
generator.writeUTF8String(bytes, 0, bytes.length);
wroteValue = true;
}
catch (IOException e) {
Expand Down

0 comments on commit 9575cb1

Please sign in to comment.