Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Remove unnecessary String() constructor invocations
[yangtools.git]
/
common
/
object-cache-guava
/
src
/
test
/
java
/
org
/
opendaylight
/
yangtools
/
objcache
/
guava
/
GuavaObjectCacheTest.java
diff --git
a/common/object-cache-guava/src/test/java/org/opendaylight/yangtools/objcache/guava/GuavaObjectCacheTest.java
b/common/object-cache-guava/src/test/java/org/opendaylight/yangtools/objcache/guava/GuavaObjectCacheTest.java
index bc41da9ab31f8d2b1f1368d280bf03a17e1fdb72..b32ac84e9faf29c4b7266df94e3a17f8a3afef7c 100644
(file)
--- a/
common/object-cache-guava/src/test/java/org/opendaylight/yangtools/objcache/guava/GuavaObjectCacheTest.java
+++ b/
common/object-cache-guava/src/test/java/org/opendaylight/yangtools/objcache/guava/GuavaObjectCacheTest.java
@@
-37,6
+37,8
@@
public class GuavaObjectCacheTest {
}
@Test
+ // This test is based on using different references
+ @SuppressWarnings("RedundantStringConstructorCall")
public void testMultipleReferences() {
final String s1 = "abcd";
final String s2 = new String(s1);