Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbateman2007-09-25 00:39:46 +0000
committercbateman2007-09-25 00:39:46 +0000
commit6b0a327a8d86a814c8579f97c5905fa5285e9c99 (patch)
tree0271629e02cb3da7ba1f8dba5af530ed47918781
parent9d1b5eed9c17fb2a8142f1bf15df7920bbbdc848 (diff)
downloadwebtools.jsf-6b0a327a8d86a814c8579f97c5905fa5285e9c99.tar.gz
webtools.jsf-6b0a327a8d86a814c8579f97c5905fa5285e9c99.tar.xz
webtools.jsf-6b0a327a8d86a814c8579f97c5905fa5285e9c99.zip
FindBugs: add hashCode to be compliant with equals interface.
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/elementedit/jsfcore/JarEntryEditorInput.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/elementedit/jsfcore/JarEntryEditorInput.java b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/elementedit/jsfcore/JarEntryEditorInput.java
index f6b5697ab..17ee5a464 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/elementedit/jsfcore/JarEntryEditorInput.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/elementedit/jsfcore/JarEntryEditorInput.java
@@ -51,6 +51,15 @@ public class JarEntryEditorInput implements IStorageEditorInput
return fJarEntryFile.equals(other.fJarEntryFile);
}
+
+ @Override
+ public int hashCode()
+ {
+ // two editor inputs are equal if their fJarEntryFile's are
+ // equal. Therefore use the same criteria for hashcodes
+ return fJarEntryFile.hashCode();
+ }
+
/*
* @see IEditorInput#getPersistable()
*/

Back to the top