This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 0370e65ff6e791301619ddcf30673732bf3bce08
Author: Ali Ariff <[email protected]>
AuthorDate: Fri Feb 21 21:36:13 2025 +0100

    GH-3018: Update comparison
---
 .../org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
 
b/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
index b29b5ba5a4..1ef2653c9b 100644
--- 
a/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
+++ 
b/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
@@ -79,7 +79,7 @@ public class UniqueLangConstraint implements Constraint {
                     String msg = toString()+" Duplicate langtag: 
"+obj.getLiteralLanguage();
                     vCxt.notifyValidationListener(() -> new 
ConstraintEvaluatedOnSinglePathNodeEvent(vCxt, shape,  focusNode, this, path, 
obj,
                                     false));
-                    Node valueNode = 
ShaclSystem.getMode().equals(ShaclSystem.Mode.NORMAL) ? obj : null;
+                    Node valueNode = ShaclSystem.getMode() == 
ShaclSystem.Mode.NORMAL ? obj : null;
                     vCxt.reportEntry(msg, shape, focusNode, path, valueNode, 
this);
                     results.add(tag);
                 }

Reply via email to