Skip to content
Permalink
Browse files
Remove unnecessary casts.
  • Loading branch information
garydgregory committed Oct 30, 2017
1 parent d59203c commit 0d4ee5cf89a25268fbd00d61276d9b199dc23908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -92,7 +92,7 @@ public void createFromDefaultGraphNodeGeneratedIRINode() throws Exception {
@Test
public void createFromDefaultGraphNodeGeneratedIRIString() throws Exception {
// What if <urn:x-arq:DefaultGraphNode> appear in a non-Jena IRI?
IRI foreignDefaultGraph = (IRI) simpleRDF.createIRI(Quad.defaultGraphNodeGenerated.getURI());
IRI foreignDefaultGraph = simpleRDF.createIRI(Quad.defaultGraphNodeGenerated.getURI());
JenaQuad q = rdf.createQuad(foreignDefaultGraph, example, example, example);
// We'll expect JenaRDF to preserve the graph IRI as-is
assertTrue(q.asJenaQuad().isDefaultGraph());
@@ -186,7 +186,7 @@ protected RDF4JTriple asTripleLike(final Statement statement) {
public Set<RDF4JBlankNodeOrIRI> getContextMask() {
final Set<RDF4JBlankNodeOrIRI> mask = new HashSet<>();
for (final Resource s : contextMask) {
mask.add((RDF4JBlankNodeOrIRI) rdf4jTermFactory.asRDFTerm(s));
mask.add(rdf4jTermFactory.asRDFTerm(s));
}
return Collections.unmodifiableSet(mask);
}

0 comments on commit 0d4ee5c

Please sign in to comment.