Removed getClass comparison if FlowComparator. 40/10140/1
authorTony Tkacik <ttkacik@cisco.com>
Thu, 21 Aug 2014 14:55:09 +0000 (16:55 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Thu, 21 Aug 2014 14:55:09 +0000 (16:55 +0200)
Change-Id: I1acb4201afe56bd83ac8e8b3f16071981f95c186
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/FlowComparator.java

index cd9738c894554a8e609eac1acb4b9fbd9534eac9..2b67edfd9d318d29cbd3508c17a1e8bafd9f4a70 100644 (file)
@@ -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;