You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commonsrdf.apache.org by wi...@apache.org on 2015/03/27 19:15:25 UTC

[27/50] [abbrv] incubator-commonsrdf git commit: Should use the field to check equality with an IRI

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_...@yahoo.com>
Authored: Tue Jan 27 12:33:59 2015 +1100
Committer: Peter Ansell <p_...@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);
 			}
 		}