diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-14 21:15:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-15 09:12:36 +0100 |
commit | 5d5e14e97eafa22280250d5dab95c3228c68fb9a (patch) | |
tree | 88faebf849071437cda9c97c77f002120f27a712 /scripting | |
parent | 99b21cc9f3f32284061be255f437b2954a7aada0 (diff) |
coverity#1326899 HE: Equal objects must have equal hashcodes
and...
coverity#1326898 HE: Equal objects must have equal hashcodes
coverity#1326897 HE: Equal objects must have equal hashcodes
coverity#1326896 HE: Equal objects must have equal hashcodes
coverity#1326895 HE: Equal objects must have equal hashcodes
Change-Id: Ic9cb7542c1bf0608a97e5b4756b737cdf1bb4bd8
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/container/ScriptEntry.java | 5 | ||||
-rw-r--r-- | scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java b/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java index 6020e81ebc39..ad9826466980 100644 --- a/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java +++ b/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java @@ -85,6 +85,11 @@ public class ScriptEntry implements Cloneable { location.equals(other.getLocation()); } + @Override + public int hashCode() { + return 0; + } + public Map<String, String> getLanguageProperties() { return languagedepprops; } diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java index 3841c189a3c2..75f075289cc5 100644 --- a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java +++ b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java @@ -70,6 +70,11 @@ public class ScriptMetaData extends ScriptEntry { return super.equals(other) && hasSource == other.hasSource(); } + @Override + public int hashCode() { + return 0; + } + public String getScriptFullURL() { String url = "vnd.sun.star.script:" + parent.getName() + "." + getLanguageName() + "?" + "language=" + getLanguage() |