diff options
author | Tom Chao <chaot@google.com> | 2013-07-18 11:34:04 -0700 |
---|---|---|
committer | Tom Chao <chaot@google.com> | 2013-07-19 09:30:56 -0700 |
commit | f4e01452f159ae6b53f5edd25fa647ca2919ae10 (patch) | |
tree | 717305ac7b907d3a801e859bddec59f1d95a8b17 /java | |
parent | 8cf17a8fbab128bda57c573e2ef7e0fafea39269 (diff) | |
download | external_protobuf-f4e01452f159ae6b53f5edd25fa647ca2919ae10.zip external_protobuf-f4e01452f159ae6b53f5edd25fa647ca2919ae10.tar.gz external_protobuf-f4e01452f159ae6b53f5edd25fa647ca2919ae10.tar.bz2 |
Update nano to serialize java keywords properly.
Change-Id: I7407d0fab609c336ecd73499e725aed0dd50f555
Diffstat (limited to 'java')
-rw-r--r-- | java/src/test/java/com/google/protobuf/NanoTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/test/java/com/google/protobuf/NanoTest.java b/java/src/test/java/com/google/protobuf/NanoTest.java index 19f3957..5a04b6f 100644 --- a/java/src/test/java/com/google/protobuf/NanoTest.java +++ b/java/src/test/java/com/google/protobuf/NanoTest.java @@ -2250,6 +2250,12 @@ public class NanoTest extends TestCase { assertEquals(message.d, newMessage.d); } + public void testJavaKeyword() throws Exception { + TestAllTypesNano msg = new TestAllTypesNano(); + msg.synchronized_ = 123; + assertEquals(123, msg.synchronized_); + } + private <T> List<T> list(T first, T... remaining) { List<T> list = new ArrayList<T>(); list.add(first); |