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:40 UTC
[18/48] jena git commit: Typo
Typo
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/8a8bf936
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/8a8bf936
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/8a8bf936
Branch: refs/heads/hadoop-rdf
Commit: 8a8bf936d419fae9a6980474c271d5a23670cae3
Parents: 6393067
Author: Andy Seaborne <an...@apache.org>
Authored: Fri Nov 21 15:56:10 2014 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Fri Nov 21 15:56:10 2014 +0000
----------------------------------------------------------------------
.../datatypes/xsd/impl/XSDBaseStringType.java | 24 +-------------------
1 file changed, 1 insertion(+), 23 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/8a8bf936/jena-core/src/main/java/com/hp/hpl/jena/datatypes/xsd/impl/XSDBaseStringType.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/com/hp/hpl/jena/datatypes/xsd/impl/XSDBaseStringType.java b/jena-core/src/main/java/com/hp/hpl/jena/datatypes/xsd/impl/XSDBaseStringType.java
index 6a5613e..e8e2a6e 100644
--- a/jena-core/src/main/java/com/hp/hpl/jena/datatypes/xsd/impl/XSDBaseStringType.java
+++ b/jena-core/src/main/java/com/hp/hpl/jena/datatypes/xsd/impl/XSDBaseStringType.java
@@ -23,7 +23,7 @@ import com.hp.hpl.jena.graph.impl.LiteralLabel;
import com.hp.hpl.jena.shared.impl.JenaParameters;
/**
- * Base implementation for all string datatypes derinved from
+ * Base implementation for all string datatypes derived from
* xsd:string. The only purpose of this place holder is
* to support the isValidLiteral tests across string types.
*/
@@ -49,28 +49,6 @@ public class XSDBaseStringType extends XSDDatatype {
super(typeName, javaClass);
}
-
-// Functionality moved to XSDDatatype but old code left here temporarily until
-// we're sure the change is correct.
-//
-// /**
-// * Test whether the given LiteralLabel is a valid instance
-// * of this datatype. This takes into accound typing information
-// * as well as lexical form - for example an xsd:string is
-// * never considered valid as an xsd:integer (even if it is
-// * lexically legal like "1").
-// */
-// public boolean isValidLiteral(LiteralLabel lit) {
-// RDFDatatype dt = lit.getDatatype();
-// if ( dt == null && lit.language().equals("") ) return true;
-// if ( this.equals(dt) ) return true;
-// if (dt instanceof XSDBaseStringType) {
-// return isValid(lit.getLexicalForm());
-// } else {
-// return false;
-// }
-// }
-
/**
* Compares two instances of values of the given datatype.
* This ignores lang tags and optionally allows plain literals to