Skip to content
Permalink
Browse files
Remove redundant superinterfaces
  • Loading branch information
garydgregory committed Nov 11, 2016
1 parent 56ddbdc commit d9b47b703d35a5451e6a89f036ab6c89c667b204
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 15 deletions.
@@ -25,10 +25,9 @@

import org.apache.commons.rdf.api.IRI;
import org.apache.commons.rdf.api.QuadLike;
import org.apache.commons.rdf.api.RDFTerm;
import org.apache.commons.rdf.api.RDF;
import org.apache.commons.rdf.api.RDFTerm;
import org.apache.commons.rdf.api.TripleLike;
import org.apache.commons.rdf.experimental.RDFParser;
import org.apache.commons.rdf.jena.JenaGraph;
import org.apache.commons.rdf.jena.JenaRDF;
import org.apache.commons.rdf.simple.experimental.AbstractRDFParser;
@@ -38,7 +37,7 @@
import org.apache.jena.riot.system.StreamRDF;
import org.apache.jena.riot.system.StreamRDFLib;

public class JenaRDFParser extends AbstractRDFParser<JenaRDFParser> implements RDFParser {
public class JenaRDFParser extends AbstractRDFParser<JenaRDFParser> {

private Consumer<TripleLike> generalizedConsumerTriple;
private Consumer<QuadLike<RDFTerm>> generalizedConsumerQuad;
@@ -18,12 +18,11 @@

package org.apache.commons.rdf.jena.impl;

import org.apache.commons.rdf.api.RDFTerm;
import org.apache.commons.rdf.jena.JenaRDFTerm;
import org.apache.jena.graph.Node;
import org.apache.jena.riot.out.NodeFmtLib;

class AbstractJenaRDFTerm implements JenaRDFTerm, RDFTerm {
class AbstractJenaRDFTerm implements JenaRDFTerm {
private final Node node;
// static private PrefixMapping empty = new PrefixMappingImpl();

@@ -30,11 +30,10 @@
import org.apache.commons.rdf.api.IRI;
import org.apache.commons.rdf.api.Quad;
import org.apache.commons.rdf.api.RDFSyntax;
import org.apache.commons.rdf.experimental.RDFParser;
import org.apache.commons.rdf.rdf4j.RDF4J;
import org.apache.commons.rdf.rdf4j.RDF4JBlankNodeOrIRI;
import org.apache.commons.rdf.rdf4j.RDF4JDataset;
import org.apache.commons.rdf.rdf4j.RDF4JGraph;
import org.apache.commons.rdf.rdf4j.RDF4J;
import org.apache.commons.rdf.simple.experimental.AbstractRDFParser;
import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Resource;
@@ -57,7 +56,7 @@
* <em>rdf4j-rio-*</em> module on the classpath.
*
*/
public class RDF4JParser extends AbstractRDFParser<RDF4JParser> implements RDFParser {
public class RDF4JParser extends AbstractRDFParser<RDF4JParser> {

private final class AddToQuadConsumer extends AbstractRDFHandler {
private final Consumer<Quad> quadTarget;
@@ -25,11 +25,11 @@
import org.apache.commons.rdf.api.Quad;
import org.apache.commons.rdf.api.RDFTerm;
import org.apache.commons.rdf.api.Triple;
import org.apache.commons.rdf.rdf4j.RDF4JQuad;
import org.apache.commons.rdf.rdf4j.RDF4J;
import org.apache.commons.rdf.rdf4j.RDF4JQuad;
import org.eclipse.rdf4j.model.Statement;

final class QuadImpl implements Quad, RDF4JQuad {
final class QuadImpl implements RDF4JQuad {
private transient int hashCode = 0;
private final UUID salt;
private final Statement statement;
@@ -23,7 +23,6 @@
import java.util.stream.Stream;

import org.apache.commons.rdf.api.BlankNodeOrIRI;
import org.apache.commons.rdf.api.Dataset;
import org.apache.commons.rdf.api.Graph;
import org.apache.commons.rdf.api.IRI;
import org.apache.commons.rdf.api.Quad;
@@ -39,7 +38,7 @@
import org.eclipse.rdf4j.repository.RepositoryConnection;
import org.eclipse.rdf4j.repository.RepositoryResult;

class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> implements RDF4JDataset, Dataset {
class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> implements RDF4JDataset {

RepositoryDatasetImpl(final Repository repository, final UUID salt, final boolean handleInitAndShutdown, final boolean includeInferred) {
super(repository, salt, handleInitAndShutdown, includeInferred);
@@ -26,7 +26,6 @@
import java.util.stream.Stream;

import org.apache.commons.rdf.api.BlankNodeOrIRI;
import org.apache.commons.rdf.api.Graph;
import org.apache.commons.rdf.api.IRI;
import org.apache.commons.rdf.api.RDFTerm;
import org.apache.commons.rdf.api.Triple;
@@ -42,7 +41,7 @@
import org.eclipse.rdf4j.repository.RepositoryConnection;
import org.eclipse.rdf4j.repository.RepositoryResult;

class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> implements Graph, RDF4JGraph {
class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> implements RDF4JGraph {

private final Resource[] contextMask;

@@ -27,7 +27,7 @@
import org.apache.commons.rdf.rdf4j.RDF4JTriple;
import org.eclipse.rdf4j.model.Statement;

final class TripleImpl implements Triple, RDF4JTriple {
final class TripleImpl implements RDF4JTriple {
private final UUID salt;
private final Statement statement;

0 comments on commit d9b47b7

Please sign in to comment.