Skip to content
Permalink
Browse files
Remove unnecessary casts
  • Loading branch information
garydgregory committed Nov 11, 2016
1 parent 319818b commit f8c328b6ea0c8bc66370fbbefbc3c2fcf1da3f1d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -58,7 +58,7 @@ public JsonLdParser contentType(RDFSyntax rdfSyntax) throws IllegalArgumentExcep

@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);
}

0 comments on commit f8c328b

Please sign in to comment.