commit | c7c1d35a9dbe08dc183bf85752e0e25cc15b7f23 | [log] [tgz] |
---|---|---|
author | HIGUCHI Yuta <y-higuchi@ak.jp.nec.com> | Wed Oct 07 16:14:20 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Oct 08 16:00:20 2015 +0000 |
tree | efd462936821f77e51837a851ad12b95d16bd6c4 | |
parent | b75a67a0099290a27a1b8faf4dacb53ed0ebbe69 [diff] |
Fix equals comparing against wrong type Change-Id: If972a3a7b28c05cbdd9df5c7e5103ebbb5eaf533
diff --git a/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResourceRequest.java b/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResourceRequest.java index 91cc3d1..e07309c 100644 --- a/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResourceRequest.java +++ b/core/api/src/main/java/org/onosproject/net/resource/link/BandwidthResourceRequest.java
@@ -64,7 +64,7 @@ if (obj == null || getClass() != obj.getClass()) { return false; } - final BandwidthResourceAllocation other = (BandwidthResourceAllocation) obj; + final BandwidthResourceRequest other = (BandwidthResourceRequest) obj; return Objects.equals(this.bandwidth, other.bandwidth()); }