commit | 45233db454b00bbea57a1ff94a1b6693d07db739 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Wed Apr 09 17:33:01 2014 -0700 |
committer | Gerrit Code Review <gerrit2@onos-services> | Wed Apr 09 22:49:29 2014 -0700 |
tree | 8c33452c67a1f7c8c11976957304fd4b02f12bb7 | |
parent | c68974f7b62cd5188853ab65e5905221ee6c5086 [diff] [blame] |
Fix issues found by FindBugs: DMI_INVOKING_HASHCODE_ON_ARRAY http://findbugs.sourceforge.net/bugDescriptions.html#DMI_INVOKING_HASHCODE_ON_ARRAY Change-Id: I948f93b5aa94af596cbf98b433eeee8fdaad79e5
diff --git a/src/main/java/net/onrc/onos/core/packet/BSNPROBE.java b/src/main/java/net/onrc/onos/core/packet/BSNPROBE.java index e411b7e..c284aca 100644 --- a/src/main/java/net/onrc/onos/core/packet/BSNPROBE.java +++ b/src/main/java/net/onrc/onos/core/packet/BSNPROBE.java
@@ -151,8 +151,8 @@ public int hashCode() { final int prime = 883; int result = super.hashCode(); - result = prime * result + srcMac.hashCode(); - result = prime * result + dstMac.hashCode(); + result = prime * result + Arrays.hashCode(srcMac); + result = prime * result + Arrays.hashCode(dstMac); result = prime * result + (int) (srcSwDpid >> 32) + (int) srcSwDpid; result = prime * result + srcPortNo; return result;