diff options
author | Tibor Král <tibor.kral@pantheon.tech> | 2018-12-12 11:19:02 +0100 |
---|---|---|
committer | Michal Cmarada <mcmarada@cisco.com> | 2018-12-12 12:07:24 +0000 |
commit | 91db56913c9b1fc9292637adf4d96a052a737f61 (patch) | |
tree | 2aa1443ebd675b86bc4ec4e8fe6c3e08ad39d880 | |
parent | a63a72192bdd8148b6147b58db1eea054efb09a1 (diff) |
HC2VPP-395: Nullable patch
Change-Id: I21c83ad95b1ba236a0456bd1896eebb8bf33f893
Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
-rw-r--r-- | v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManagerImpl.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManagerImpl.java b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManagerImpl.java index e76613235..d3d62e35c 100644 --- a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManagerImpl.java +++ b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManagerImpl.java @@ -23,7 +23,7 @@ import javax.annotation.Nullable; public class InterfaceCacheStatisticsDumpManagerImpl implements InterfaceCacheStatisticsDumpManager { - private HashMap<Integer, InterfaceCacheStatisticsSample> statistics; + private final HashMap<Integer, InterfaceCacheStatisticsSample> statistics; public InterfaceCacheStatisticsDumpManagerImpl() { statistics = new HashMap<>(); @@ -35,7 +35,6 @@ public class InterfaceCacheStatisticsDumpManagerImpl implements InterfaceCacheSt return statistics.getOrDefault(ifcSwIndex, null); } - @Nullable @Override public void setStatisticsData(final VnetPerInterfaceCombinedCounters data, LocalDateTime captureTime, final int ifcSwIndex) { @@ -48,19 +47,16 @@ public class InterfaceCacheStatisticsDumpManagerImpl implements InterfaceCacheSt return statistics.keySet().stream().mapToInt(i -> i).toArray(); } - @Nullable @Override public void disableInterface(final int ifcSwIndex) { statistics.remove(ifcSwIndex); } - @Nullable @Override public void disableAll() { statistics.clear(); } - @Nullable @Override public void enableInterface(final int index) { statistics.put(index, |