diff --git a/src/wrapper/SmartSpaceTriplet.java b/src/wrapper/SmartSpaceTriplet.java index 2f48aecc51e61e58c4e2bf098b6220b60a513ea3..e41f0c6cde14511f9b81e1b7d9d5e8a29dfd5ee6 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;