Committed by
Gerrit Code Review
Avoid unnecessary instantiation
Change-Id: I1ce616feaaca773cd693d07569f7fa1fb9062d14
Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -3,7 +3,6 @@ package org.onosproject.net.flow; | ... | @@ -3,7 +3,6 @@ package org.onosproject.net.flow; |
3 | import static com.google.common.base.MoreObjects.toStringHelper; | 3 | import static com.google.common.base.MoreObjects.toStringHelper; |
4 | 4 | ||
5 | import java.util.Arrays; | 5 | import java.util.Arrays; |
6 | -import java.util.Objects; | ||
7 | 6 | ||
8 | /** | 7 | /** |
9 | * Represents for 3rd-party private original flow. | 8 | * Represents for 3rd-party private original flow. |
... | @@ -41,11 +40,11 @@ public final class FlowRuleExtPayLoad { | ... | @@ -41,11 +40,11 @@ public final class FlowRuleExtPayLoad { |
41 | 40 | ||
42 | @Override | 41 | @Override |
43 | public int hashCode() { | 42 | public int hashCode() { |
44 | - return Objects.hash(payLoad); | 43 | + return Arrays.hashCode(payLoad); |
45 | } | 44 | } |
46 | 45 | ||
47 | public int hash() { | 46 | public int hash() { |
48 | - return Objects.hash(payLoad); | 47 | + return Arrays.hashCode(payLoad); |
49 | } | 48 | } |
50 | 49 | ||
51 | @Override | 50 | @Override | ... | ... |
-
Please register or login to post a comment