Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Baron2012-03-05 14:40:38 -0500
committerElliott Baron2012-03-05 14:40:38 -0500
commit925688064606610ec5ce17ff9b06289ecc72e0fd (patch)
tree64a3b4f9fc573839271cb41b003112ecacac8cdb /valgrind
parent83c1938bd07d9d93c8dcac6235af9b0b9a6eec76 (diff)
downloadorg.eclipse.linuxtools-925688064606610ec5ce17ff9b06289ecc72e0fd.tar.gz
org.eclipse.linuxtools-925688064606610ec5ce17ff9b06289ecc72e0fd.tar.xz
org.eclipse.linuxtools-925688064606610ec5ce17ff9b06289ecc72e0fd.zip
Implement hashCode in CachegrindDescription, as noted by findbugs.
Diffstat (limited to 'valgrind')
-rw-r--r--valgrind/org.eclipse.linuxtools.valgrind.cachegrind/src/org/eclipse/linuxtools/internal/valgrind/cachegrind/model/CachegrindDescription.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/valgrind/org.eclipse.linuxtools.valgrind.cachegrind/src/org/eclipse/linuxtools/internal/valgrind/cachegrind/model/CachegrindDescription.java b/valgrind/org.eclipse.linuxtools.valgrind.cachegrind/src/org/eclipse/linuxtools/internal/valgrind/cachegrind/model/CachegrindDescription.java
index 003a1f4e26..2570614795 100644
--- a/valgrind/org.eclipse.linuxtools.valgrind.cachegrind/src/org/eclipse/linuxtools/internal/valgrind/cachegrind/model/CachegrindDescription.java
+++ b/valgrind/org.eclipse.linuxtools.valgrind.cachegrind/src/org/eclipse/linuxtools/internal/valgrind/cachegrind/model/CachegrindDescription.java
@@ -28,6 +28,11 @@ public class CachegrindDescription {
return obj instanceof CachegrindDescription && name.equals(((CachegrindDescription) obj).getName());
}
+ @Override
+ public int hashCode() {
+ return name.hashCode();
+ }
+
public String getName() {
return name;
}

Back to the top