You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2014/11/25 17:26:41 UTC
[19/48] jena git commit: Jena-1/2 mention - now rather old.
Jena-1/2 mention - now rather old.
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/985b99ae
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/985b99ae
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/985b99ae
Branch: refs/heads/hadoop-rdf
Commit: 985b99ae73c77730d6d590aa7b76c987e6b546e2
Parents: 8a8bf93
Author: Andy Seaborne <an...@apache.org>
Authored: Fri Nov 21 15:56:54 2014 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Fri Nov 21 15:56:54 2014 +0000
----------------------------------------------------------------------
.../src/main/java/com/hp/hpl/jena/graph/NodeFactory.java | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/985b99ae/jena-core/src/main/java/com/hp/hpl/jena/graph/NodeFactory.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/com/hp/hpl/jena/graph/NodeFactory.java b/jena-core/src/main/java/com/hp/hpl/jena/graph/NodeFactory.java
index 4918cc9..e62bab5 100644
--- a/jena-core/src/main/java/com/hp/hpl/jena/graph/NodeFactory.java
+++ b/jena-core/src/main/java/com/hp/hpl/jena/graph/NodeFactory.java
@@ -59,12 +59,11 @@ public class NodeFactory
@param isXml If true then lit is exclusive canonical XML of type
rdf:XMLLiteral, and no checking will be invoked.
*/
- public static Node createLiteral( String lit, String lang, boolean isXml )
- {
- if (lit == null) throw new NullPointerException
- ( "null for literals has been illegal since Jena 2.0" );
- return createLiteral( LiteralLabelFactory.create( lit, lang, isXml ) );
- }
+ public static Node createLiteral( String lex, String lang, boolean isXml )
+ {
+ if (lex == null) throw new NullPointerException( "null lexical form for literal" );
+ return createLiteral( LiteralLabelFactory.create( lex, lang, isXml ) );
+ }
/**
* Build a literal node from its lexical form. The