From 0a3675ac78c90eded615ac8e28d5f3b7afcc8a63 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Sat, 1 Apr 2017 04:28:41 +1300 Subject: [PATCH] JENA-733 add documentation for narrower data type case --- .../src/main/java/org/apache/jena/rdf/model/Literal.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 6e53f94336b..bb6422e5b86 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 @@ -59,7 +59,10 @@ public interface Literal extends RDFNode { * this will return the literal string. In the case of typed literals * it will return a java object representing the value. In the case * of typed literals representing a java primitive then the appropriate - * java wrapper class (Integer etc) will be returned. + * java wrapper class (Integer etc) will be returned. A Long value + * may be converted to its equivalent Integer value if there is no + * loss of precision (i.e. if the value is within the Integer minimum + * and maximum values). */ public Object getValue();