summaryrefslogtreecommitdiffstats
path: root/config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java')
-rw-r--r--config-lib/src/main/java/com/yahoo/config/LeafNodeVector.java5
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());
}
}