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


The following commit(s) were added to refs/heads/main by this push:
     new 79b1245578 GH-2248: adopt docstring of Literal.getString() to fit the 
implemented behaviour
79b1245578 is described below

commit 79b124557890933c9609d64028605db43f57da5a
Author: Balduin Landolt <[email protected]>
AuthorDate: Tue Feb 6 11:10:52 2024 +0100

    GH-2248: adopt docstring of Literal.getString() to fit the implemented 
behaviour
---
 jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java 
b/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java
index 673fe2f839..953d26e6a7 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java
@@ -163,11 +163,8 @@ public interface Literal extends RDFNode {
 
     /**
      * If the literal is interpretable as a string return its value.
-     * For typed literals this will throw an error for non string
-     * literals and one needs to use getLexicalForm to return the
-     * string form of other datatypes.
      *
-     * @return the literal string
+     * @return the literal string or its lexical value
      */
     public String getString() ;
 

Reply via email to