Equals/HashCode/StringBuilder removal 74/374/3
authorEd Warnicke <eaw@cisco.com>
Fri, 17 May 2013 15:30:48 +0000 (08:30 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 23 May 2013 10:48:51 +0000 (10:48 +0000)
AdvertisedBandwidth is a subclass of Bandwidth.  Bandwidth has equals/hashcode.
AsvertisedBandwidth does not add any new non-static members, so it should be
safe to simply fall back to the parent classes equals/hashcode.

Change-Id: I7da7155af144e099510f14e1db2c57f12a2cb083
Signed-off-by: Ed Warnicke <eaw@cisco.com>
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/AdvertisedBandwidth.java

index b07dc34..37aa60d 100644 (file)
@@ -11,9 +11,6 @@ package org.opendaylight.controller.sal.core;
 
 import javax.xml.bind.annotation.XmlRootElement;
 
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-
 /**
  * @file   AdvertisedBandWidth.java
  *
@@ -45,16 +42,6 @@ public class AdvertisedBandwidth extends Bandwidth {
                return new AdvertisedBandwidth(this.bandwidthValue);  
     }
        
-    @Override
-    public int hashCode() {
-        return HashCodeBuilder.reflectionHashCode(this);
-    }
-
-    @Override
-    public boolean equals(Object obj) {
-        return EqualsBuilder.reflectionEquals(this, obj);
-    }   
-    
     @Override
     public String toString() {
         StringBuffer sb = new StringBuffer();