summaryrefslogtreecommitdiffstats
path: root/config-lib/src/main/java/com/yahoo/config/NodeVector.java
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2023-09-06 12:14:53 +0200
committerHarald Musum <musum@yahooinc.com>2023-09-06 12:14:53 +0200
commit3e3ceeb1b6c309979029d81c6d8b5ba480261181 (patch)
treed8ce1c295765ef9e62e0632a3b01bbf56c122565 /config-lib/src/main/java/com/yahoo/config/NodeVector.java
parentfc02966a4aeeece1cf70e2b8762987e4903829b7 (diff)
config-lib cleanup, no functional changes
Diffstat (limited to 'config-lib/src/main/java/com/yahoo/config/NodeVector.java')
-rw-r--r--config-lib/src/main/java/com/yahoo/config/NodeVector.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/config-lib/src/main/java/com/yahoo/config/NodeVector.java b/config-lib/src/main/java/com/yahoo/config/NodeVector.java
index 3d07de944fd..5ab1f97ecde 100644
--- a/config-lib/src/main/java/com/yahoo/config/NodeVector.java
+++ b/config-lib/src/main/java/com/yahoo/config/NodeVector.java
@@ -12,7 +12,7 @@ import java.util.*;
*/
public abstract class NodeVector<NODE> implements java.util.List<NODE> {
- protected final ArrayList<NODE> vector = new ArrayList<NODE>();
+ protected final ArrayList<NODE> vector = new ArrayList<>();
/**
* Returns the number of elements in this NodeVector.
@@ -24,7 +24,6 @@ public abstract class NodeVector<NODE> implements java.util.List<NODE> {
return size();
}
- @SuppressWarnings("serial")
public static class ReadOnlyException extends RuntimeException {
}
@@ -88,7 +87,6 @@ public abstract class NodeVector<NODE> implements java.util.List<NODE> {
return vector.hashCode();
}
- @SuppressWarnings("unchecked")
public NODE get(int index) {
return vector.get(index);
}