aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Cai <maxtroy@google.com>2014-08-28 18:18:46 +0000
committerMax Cai <maxtroy@google.com>2014-08-28 18:18:46 +0000
commitc9c2ffc3c005fbcaac2d0f91094bdb1928cb309e (patch)
tree298bf379e2d05489ab6d5907221d22778bb1e885
parent8b8481868877c9db407d04bdf4843e50d8920806 (diff)
downloadexternal_protobuf-c9c2ffc3c005fbcaac2d0f91094bdb1928cb309e.zip
external_protobuf-c9c2ffc3c005fbcaac2d0f91094bdb1928cb309e.tar.gz
external_protobuf-c9c2ffc3c005fbcaac2d0f91094bdb1928cb309e.tar.bz2
Revert "Fixed octal printing of bytearrays"
This reverts commit 8b8481868877c9db407d04bdf4843e50d8920806. Change-Id: I0876235b79cd7745312879d0f1b00c6d1c1a1b7a
-rw-r--r--java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java b/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java
index ec12c7d..572a707 100644
--- a/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java
+++ b/java/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java
@@ -249,7 +249,7 @@ public final class MessageNanoPrinter {
} else if (ch >= 32 && ch < 127) {
builder.append((char) ch);
} else {
- builder.append(String.format("\\%03o", ch && 0xff));
+ builder.append(String.format("\\%03o", ch));
}
}
builder.append('"');