commit | d5c66afc6051cd811a2ca6dd2d39ba0e999fd112 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Tue Jun 30 09:43:11 2015 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Tue Jun 30 09:46:54 2015 -0700 |
tree | fac436e1a035c34f07da4b402de98357338de5a9 | |
parent | 574d238d8ae2859bdc25ac04bf4c3182705ddb6f [diff] |
Avoid unnecessary object creation Change-Id: Iae5cb3c23540f9ac7105aa0b4c0b672ff8f75715
diff --git a/core/api/src/main/java/org/onosproject/net/PortNumber.java b/core/api/src/main/java/org/onosproject/net/PortNumber.java index 18f822c..03e6dba 100644 --- a/core/api/src/main/java/org/onosproject/net/PortNumber.java +++ b/core/api/src/main/java/org/onosproject/net/PortNumber.java
@@ -17,8 +17,6 @@ import com.google.common.primitives.UnsignedLongs; -import java.util.Objects; - /** * Representation of a port number. */ @@ -167,7 +165,7 @@ @Override public int hashCode() { - return Objects.hash(number); + return Long.hashCode(number); } @Override