diff options
author | gjoranv <gv@yahoo-inc.com> | 2017-07-19 14:54:45 +0200 |
---|---|---|
committer | gjoranv <gv@yahoo-inc.com> | 2017-07-19 14:54:45 +0200 |
commit | 1a90fe344418915d596896aba3a3c50880ceb0db (patch) | |
tree | f9aa093c3fa051be084c03fd36b9107ec6fc4979 | |
parent | f47431033d153605a083e955a990b5310fabf949 (diff) |
Minor cleanup: unnecessary annotation, use diamond operator.
-rw-r--r-- | config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java b/config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java index d1d5fc61915..9bbd9b594f8 100644 --- a/config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java +++ b/config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java @@ -34,7 +34,6 @@ public class LeafNodeVector<REAL, NODE extends LeafNode<REAL>> extends NodeVecto realValues = realList(vector); } - @SuppressWarnings("unchecked") public List<REAL> asList() { return realValues; } @@ -62,7 +61,7 @@ public class LeafNodeVector<REAL, NODE extends LeafNode<REAL>> extends NodeVecto for (String s : values) fileReferences.add(new FileReference(ReferenceNode.stripQuotes(s))); - return new LeafNodeVector<FileReference, FileNode>(fileReferences, new FileNode()); + return new LeafNodeVector<>(fileReferences, new FileNode()); } public static LeafNodeVector<Path, PathNode> createPathNodeVector(Collection<FileReference> values) { @@ -70,6 +69,6 @@ public class LeafNodeVector<REAL, NODE extends LeafNode<REAL>> extends NodeVecto for (FileReference fileReference : values) paths.add(Paths.get(fileReference.value())); - return new LeafNodeVector<Path, PathNode>(paths, new PathNode()); + return new LeafNodeVector<>(paths, new PathNode()); } } |