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

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

commit c1cb45e69b530b144fc3b5787fa20d25fec7db2f
Author: Andy Seaborne <[email protected]>
AuthorDate: Wed Sep 23 17:26:33 2026 +0100

    Javadoc in NodeValue
---
 .../main/java/org/apache/jena/sparql/expr/NodeValue.java    | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 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 67ef26b56e..94a58f251c 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
@@ -461,19 +461,24 @@ public abstract class NodeValue extends ExprNode
     // ----------------------------------------------------------------
     // ---- Node operations
 
-    public static Node toNode(NodeValue nv)
-    {
+    /**
+     * Return the RDFterm for the NodeValue; return null for a null argument.
+     */
+    public static Node toNode(NodeValue nv) {
         if ( nv == null )
             return null;
         return nv.asNode();
     }
 
-    public final Node asNode()
-    {
+    /**
+     * Return the RDFterm for the NodeValue; create the node if necessary.
+     */
+    public final Node asNode() {
         if ( node == null )
             node = makeNode();
         return node;
     }
+
     protected abstract Node makeNode();
 
     /** getNode - return the node form - may be null (use .asNode() to force 
to a node) */

Reply via email to