From f87ad111d6ad221e305e68b9f70228016b6bc3db Mon Sep 17 00:00:00 2001 From: SaboteurInCave <mikhaylovsergeyandreevich@gmail.com> Date: Fri, 18 Sep 2015 14:45:04 +0300 Subject: [PATCH] Fix if in object/subject type checking --- src/wrapper/SmartSpaceTriplet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrapper/SmartSpaceTriplet.java b/src/wrapper/SmartSpaceTriplet.java index 2f48aec..e41f0c6 100644 --- a/src/wrapper/SmartSpaceTriplet.java +++ b/src/wrapper/SmartSpaceTriplet.java @@ -20,10 +20,10 @@ public class SmartSpaceTriplet { subjectType.toLowerCase(); objectType.toLowerCase(); - if (!subjectType.equals("uri") || !subjectType.equals("literal")) + if (!subjectType.equals("uri") && !subjectType.equals("literal")) throw new SmartSpaceException("Subject type must have \"uri\" or \"literal\" type - got " + subjectType); - if (!objectType.equals("uri") || !objectType.equals("literal")) + if (!objectType.equals("uri") && !objectType.equals("literal")) throw new SmartSpaceException("Object type must have \"uri\" or \"literal\" type - got " + objectType); this.subject = subject; -- GitLab