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 610e7ed44467982aada4a551ad447f69ecab2431 Author: Andy Seaborne <[email protected]> AuthorDate: Thu Jul 10 13:44:49 2025 +0100 NodeValue - code format --- .../main/java/org/apache/jena/sparql/expr/NodeValue.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java index 69c4315fa9..f4a5fe04e3 100644 --- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java +++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java @@ -592,14 +592,13 @@ public abstract class NodeValue extends ExprNode LiteralLabel lit = node.getLiteral(); // This includes type testing - //if ( ! lit.getDatatype().isValidLiteral(lit) ) + // if ( ! lit.getDatatype().isValidLiteral(lit) ) + // Use this - already calculated when the node is formed. - if ( !lit.isWellFormed() ) - { - if ( NodeValue.VerboseWarnings ) - { - String tmp = FmtUtils.stringForNode(node); - Log.warn(NodeValue.class, "Datatype format exception: "+tmp); + if ( !lit.isWellFormed() ) { + if ( NodeValue.VerboseWarnings ) { + String tmp = FmtUtils.stringForNode(node); + Log.warn(NodeValue.class, "Datatype format exception: " + tmp); } // Invalid lexical form. return new NodeValueNode(node);
