commit | e00712a1d7f1264e7ae7cff59d2ab0f29c0c4e03 | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Thu Nov 27 10:16:29 2014 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Thu Nov 27 10:16:29 2014 +0900 |
tree | dcd6160a3a784887d7cf75889304a489ae84ed5b | |
parent | 757860b79b362bbd13cd7c4e049053fbd6b93d64 [diff] |
Fix 'dead store' warnings raised by FindBugs Remove assignments to unused variables in test cases. Change-Id: Id0be8f249c1b004c1097309d52e3245a6982e3e4
diff --git a/src/test/java/com/google/gwtorm/nosql/IndexFunctionTest.java b/src/test/java/com/google/gwtorm/nosql/IndexFunctionTest.java index ff827ba..4db5e85 100644 --- a/src/test/java/com/google/gwtorm/nosql/IndexFunctionTest.java +++ b/src/test/java/com/google/gwtorm/nosql/IndexFunctionTest.java
@@ -72,9 +72,6 @@ p = new Person(new Person.Key(null), 0); assertFalse(idx.includes(p)); - - b = new IndexKeyBuilder(); - assertFalse(idx.includes(p)); } @Test
diff --git a/src/test/java/com/google/gwtorm/protobuf/ProtobufEncoderTest.java b/src/test/java/com/google/gwtorm/protobuf/ProtobufEncoderTest.java index bca38ee..78f1938 100644 --- a/src/test/java/com/google/gwtorm/protobuf/ProtobufEncoderTest.java +++ b/src/test/java/com/google/gwtorm/protobuf/ProtobufEncoderTest.java
@@ -79,8 +79,6 @@ assertNull(a.location()); Person.Key k = new Person.Key("bob"); - @SuppressWarnings("unused") - Person p = new Person(k, 42); Address b = new Address(new Address.Key(k, "ny"), "ny"); byte[] act = e.encodeToByteArray(b);