Commit a609653b authored by Max Cai's avatar Max Cai Committed by Android Git Automerger

am 238e0ac5: Merge "Fixed octal printing of bytearrays"

* commit '238e0ac56654afadb5270264660db7305f139c02':
  Fixed octal printing of bytearrays
parents 274705a9 04f70ef5
...@@ -249,7 +249,7 @@ public final class MessageNanoPrinter { ...@@ -249,7 +249,7 @@ public final class MessageNanoPrinter {
} else if (ch >= 32 && ch < 127) { } else if (ch >= 32 && ch < 127) {
builder.append((char) ch); builder.append((char) ch);
} else { } else {
builder.append(String.format("\\%03o", ch)); builder.append(String.format("\\%03o", ch && 0xff));
} }
} }
builder.append('"'); builder.append('"');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment