* src/org/eclipse/linuxtools/lttng/ui/views/statistics/model/FixedArray.java (hashCode): Better hashing algorithm
+2010-12-10 Bernd Hufmann <bhufmann@gmail.com>
+
+ * src/org/eclipse/linuxtools/lttng/ui/views/statistics/model/FixedArray.java (hashCode): Better hashing algorithm
+
2010-12-08 Francois Chouinard <fchouinard@gmail.com>
* src/org/eclipse/linuxtools/lttng/ui/views/controlflow/ControlFlowView.java: Fix the icon path
*/
@Override
public int hashCode() {
- int hash = 1;
- for (int i = 0; i < fArray.length; ++i) {
- hash = hash ^ fArray[i];
- }
- return hash;
+ return Arrays.hashCode(fArray);
}
/**
* Sets value at given index.