From: Tony Tkacik Date: Fri, 22 Aug 2014 10:52:15 +0000 (+0000) Subject: Merge "Removed getClass comparison if FlowComparator." X-Git-Tag: release/helium~237 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=a3ebcb3c36804de1e4c0177f3462e33958b0c216;hp=45d3c4d975980774190bf8d640ebc0ca40de0abe Merge "Removed getClass comparison if FlowComparator." --- diff --git a/opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/FlowComparator.java b/opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/FlowComparator.java index cd9738c894..2b67edfd9d 100644 --- a/opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/FlowComparator.java +++ b/opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/FlowComparator.java @@ -35,9 +35,6 @@ final class FlowComparator { if (statsFlow == null || storedFlow == null) { return false; } - if (statsFlow.getClass() != storedFlow.getClass()) { - return false; - } if (statsFlow.getContainerName()== null) { if (storedFlow.getContainerName()!= null) { return false; @@ -99,9 +96,6 @@ final class FlowComparator { } if (storedFlow == null && statsFlow != null) return false; if (statsFlow == null && storedFlow != null) return false; - if (storedFlow.getClass() != statsFlow.getClass()) { - return false; - } if (storedFlow.getEthernetMatch() == null) { if (statsFlow.getEthernetMatch() != null) { return false;