Updated Branches: refs/heads/maintenance-3.1.x bfaf09d34 -> 4f30dfabb
reverted backport for MARMOTTA-401 because it breaks Sesame compatibility (cherry picked from commit 77a532aa763272d9538e99ad4d4b19844333170a) Signed-off-by: Jakob Frank <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/61a2d534 Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/61a2d534 Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/61a2d534 Branch: refs/heads/maintenance-3.1.x Commit: 61a2d53454d4eb93c733aec48740efe17df975d5 Parents: bfaf09d Author: Sebastian Schaffert <[email protected]> Authored: Wed Dec 11 23:39:13 2013 +0100 Committer: Jakob Frank <[email protected]> Committed: Thu Dec 12 11:58:32 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/61a2d534/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 92bd4c8..49b0206 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 @@ -163,11 +163,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(); }
