commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject incubator-commonsrdf git commit: Remove unnecessary casts
Date Fri, 11 Nov 2016 22:44:27 GMT
Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master 319818b48 -> f8c328b6e


Remove unnecessary casts

Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/f8c328b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/f8c328b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/f8c328b6

Branch: refs/heads/master
Commit: f8c328b6ea0c8bc66370fbbefbc3c2fcf1da3f1d
Parents: 319818b
Author: Gary Gregory <ggregory@apache.org>
Authored: Fri Nov 11 14:44:25 2016 -0800
Committer: Gary Gregory <ggregory@apache.org>
Committed: Fri Nov 11 14:44:25 2016 -0800

----------------------------------------------------------------------
 .../apache/commons/rdf/jsonldjava/experimental/JsonLdParser.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/f8c328b6/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/JsonLdParser.java
----------------------------------------------------------------------
diff --git a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/JsonLdParser.java
b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/JsonLdParser.java
index 1e6d3ec..f7ab4c8 100644
--- a/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/JsonLdParser.java
+++ b/jsonld-java/src/main/java/org/apache/commons/rdf/jsonldjava/experimental/JsonLdParser.java
@@ -58,7 +58,7 @@ public class JsonLdParser extends AbstractRDFParser<JsonLdParser>
{
 
     @Override
     public JsonLdParser contentType(String contentType) throws IllegalArgumentException {
-        JsonLdParser c = (JsonLdParser) super.contentType(contentType);
+        JsonLdParser c = super.contentType(contentType);
         if (c.getContentType().filter(Predicate.isEqual(RDFSyntax.JSONLD).negate()).isPresent())
{
             throw new IllegalArgumentException("Unsupported contentType: " + contentType);
         }


Mime
View raw message