Committed by
Gerrit Code Review
Fix equals comparing against wrong type
Change-Id: If972a3a7b28c05cbdd9df5c7e5103ebbb5eaf533
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -64,7 +64,7 @@ public class BandwidthResourceRequest implements ResourceRequest { | ... | @@ -64,7 +64,7 @@ public class BandwidthResourceRequest implements ResourceRequest { |
64 | if (obj == null || getClass() != obj.getClass()) { | 64 | if (obj == null || getClass() != obj.getClass()) { |
65 | return false; | 65 | return false; |
66 | } | 66 | } |
67 | - final BandwidthResourceAllocation other = (BandwidthResourceAllocation) obj; | 67 | + final BandwidthResourceRequest other = (BandwidthResourceRequest) obj; |
68 | return Objects.equals(this.bandwidth, other.bandwidth()); | 68 | return Objects.equals(this.bandwidth, other.bandwidth()); |
69 | } | 69 | } |
70 | 70 | ... | ... |
-
Please register or login to post a comment