Merge "Fixed octal printing of bytearrays"

pull/91/head
Max Cai 10 years ago committed by Gerrit Code Review
commit 9d9cb7c330
  1. 2
      java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java

@ -243,7 +243,7 @@ public final class MessageNanoPrinter {
builder.append('"');
for (int i = 0; i < bytes.length; ++i) {
int ch = bytes[i];
int ch = bytes[i] & 0xff;
if (ch == '\\' || ch == '"') {
builder.append('\\').append((char) ch);
} else if (ch >= 32 && ch < 127) {

Loading…
Cancel
Save