You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2013/12/11 23:44:18 UTC

[4/5] git commit: reverted hashcode fix for MARMOTTA-401 because it breaks Sesame compatibility

reverted hashcode fix for MARMOTTA-401 because it breaks Sesame compatibility


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/77a532aa
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/77a532aa
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/77a532aa

Branch: refs/heads/develop
Commit: 77a532aa763272d9538e99ad4d4b19844333170a
Parents: f14417e
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Wed Dec 11 23:39:13 2013 +0100
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Wed Dec 11 23:39:13 2013 +0100

----------------------------------------------------------------------
 .../java/org/apache/marmotta/kiwi/model/rdf/KiWiLiteral.java     | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/77a532aa/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiLiteral.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiLiteral.java b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiLiteral.java
index aa5cd56..ee2c0a1 100644
--- a/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiLiteral.java
+++ b/libraries/kiwi/kiwi-triplestore/src/main/java/org/apache/marmotta/kiwi/model/rdf/KiWiLiteral.java
@@ -174,11 +174,15 @@ public abstract class KiWiLiteral extends KiWiNode implements Literal {
 
     @Override
     public int hashCode() {
+        // not compatible with Sesame:
+        /*
         int result =  this.getClass().hashCode();
         result = 31 * result + (locale != null ? locale.hashCode() : 0);
         result = 31 * result + (type != null ? type.hashCode() : 0);
         result = 31 * result + this.getLabel().hashCode();
         return result;
+        */
+        return getLabel().hashCode();
     }