commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [3/5] incubator-commonsrdf git commit: COMMONSRDF-14 Update simple for hashCode definition
Date Mon, 10 Aug 2015 10:31:24 GMT
COMMONSRDF-14 Update simple for hashCode definition


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/24da09e9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/24da09e9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/24da09e9

Branch: refs/heads/master
Commit: 24da09e94a24081478eef19969a4c4be2f7ad66b
Parents: 26da408
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Tue May 12 10:06:43 2015 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Tue May 12 10:06:43 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/commons/rdf/simple/LiteralImpl.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/24da09e9/simple/src/main/java/org/apache/commons/rdf/simple/LiteralImpl.java
----------------------------------------------------------------------
diff --git a/simple/src/main/java/org/apache/commons/rdf/simple/LiteralImpl.java b/simple/src/main/java/org/apache/commons/rdf/simple/LiteralImpl.java
index aafc41d..7a7ed96 100644
--- a/simple/src/main/java/org/apache/commons/rdf/simple/LiteralImpl.java
+++ b/simple/src/main/java/org/apache/commons/rdf/simple/LiteralImpl.java
@@ -17,14 +17,14 @@
  */
 package org.apache.commons.rdf.simple;
 
-import org.apache.commons.rdf.api.IRI;
-import org.apache.commons.rdf.api.Literal;
-
 import java.util.IllformedLocaleException;
 import java.util.Locale;
 import java.util.Objects;
 import java.util.Optional;
 
+import org.apache.commons.rdf.api.IRI;
+import org.apache.commons.rdf.api.Literal;
+
 /**
  * A simple implementation of Literal.
  */
@@ -117,7 +117,7 @@ final class LiteralImpl implements Literal {
 
     @Override
     public int hashCode() {
-        return Objects.hash(dataType, lexicalForm, languageTag);
+        return Objects.hash(lexicalForm, dataType, languageTag);
     }
 
     @Override


Mime
View raw message