From 1a90fe344418915d596896aba3a3c50880ceb0db Mon Sep 17 00:00:00 2001 From: gjoranv Date: Wed, 19 Jul 2017 14:54:45 +0200 Subject: Minor cleanup: unnecessary annotation, use diamond operator. --- config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java | 5 ++--- 1 file 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> extends NodeVecto realValues = realList(vector); } - @SuppressWarnings("unchecked") public List asList() { return realValues; } @@ -62,7 +61,7 @@ public class LeafNodeVector> extends NodeVecto for (String s : values) fileReferences.add(new FileReference(ReferenceNode.stripQuotes(s))); - return new LeafNodeVector(fileReferences, new FileNode()); + return new LeafNodeVector<>(fileReferences, new FileNode()); } public static LeafNodeVector createPathNodeVector(Collection values) { @@ -70,6 +69,6 @@ public class LeafNodeVector> extends NodeVecto for (FileReference fileReference : values) paths.add(Paths.get(fileReference.value())); - return new LeafNodeVector(paths, new PathNode()); + return new LeafNodeVector<>(paths, new PathNode()); } } -- cgit v1.2.3