commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject [27/50] [abbrv] incubator-commonsrdf git commit: Should use the field to check equality with an IRI
Date Fri, 27 Mar 2015 18:15:25 GMT
Should use the field to check equality with an IRI

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

Branch: refs/heads/master
Commit: 43b3d9f76507a016d42b69b332f305645344b91e
Parents: 79eabd3
Author: Peter Ansell <p_ansell@yahoo.com>
Authored: Tue Jan 27 12:33:59 2015 +1100
Committer: Peter Ansell <p_ansell@yahoo.com>
Committed: Tue Jan 27 12:33:59 2015 +1100

----------------------------------------------------------------------
 simple/src/main/java/com/github/commonsrdf/simple/Types.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/43b3d9f7/simple/src/main/java/com/github/commonsrdf/simple/Types.java
----------------------------------------------------------------------
diff --git a/simple/src/main/java/com/github/commonsrdf/simple/Types.java b/simple/src/main/java/com/github/commonsrdf/simple/Types.java
index 3fbb577..60b5a4a 100644
--- a/simple/src/main/java/com/github/commonsrdf/simple/Types.java
+++ b/simple/src/main/java/com/github/commonsrdf/simple/Types.java
@@ -182,8 +182,8 @@ public enum Types implements IRI {
 	 *         {@link Optional#empty()} if it is not present here.
 	 */
 	public static Optional<IRI> get(IRI nextIRI) {
-		for (IRI nextType : values()) {
-			if (nextType.equals(nextIRI)) {
+		for (Types nextType : values()) {
+			if (nextType.field.equals(nextIRI)) {
 				return Optional.of(nextType);
 			}
 		}


Mime
View raw message