Skip to content

Commit

Permalink
Make package private class final
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 5, 2023
1 parent 0ed6450 commit 7870273
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Optional;
import java.util.stream.Stream;

class DummyDataset implements Dataset {
final class DummyDataset implements Dataset {

boolean streamCalled = false;
boolean filteredStreamCalled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.util.Arrays;
import java.util.stream.Stream;

class DummyGraph implements Graph {
final class DummyGraph implements Graph {

boolean streamCalled = false;
boolean filteredStreamCalled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
package org.apache.commons.rdf.api;

class DummyIRI implements IRI {
final class DummyIRI implements IRI {
static final String EXAMPLE_COM = "http://example.com/";
final int i;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Objects;
import java.util.Optional;

class DummyQuad implements Quad {
final class DummyQuad implements Quad {
private static List<RDFTerm> quadList(final Quad q) {
return Arrays.asList(
q.getGraphName().orElse(null),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.List;
import java.util.Objects;

class DummyTriple implements Triple {
final class DummyTriple implements Triple {
private static List<RDFTerm> tripleList(final Triple q) {
return Arrays.asList(
q.getSubject(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.commons.rdf.jena.JenaBlankNode;
import org.apache.jena.graph.Node;

class JenaBlankNodeImpl extends AbstractJenaRDFTerm implements JenaBlankNode {
final class JenaBlankNodeImpl extends AbstractJenaRDFTerm implements JenaBlankNode {

private final UUID salt;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import org.apache.jena.sparql.core.DatasetGraph;
import org.apache.jena.sparql.core.GraphView;

class JenaDatasetImpl implements JenaDataset {
final class JenaDatasetImpl implements JenaDataset {

private final DatasetGraph datasetGraph;
private final UUID salt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.commons.rdf.jena.JenaGeneralizedQuadLike;
import org.apache.jena.sparql.core.Quad;

class JenaGeneralizedQuadLikeImpl extends AbstractQuadLike<RDFTerm, RDFTerm, RDFTerm, RDFTerm>
final class JenaGeneralizedQuadLikeImpl extends AbstractQuadLike<RDFTerm, RDFTerm, RDFTerm, RDFTerm>
implements JenaGeneralizedQuadLike {

JenaGeneralizedQuadLikeImpl(final Quad quad, final UUID salt) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.commons.rdf.jena.JenaGeneralizedTripleLike;
import org.apache.jena.graph.Triple;

class JenaGeneralizedTripleLikeImpl extends AbstractQuadLike<RDFTerm, RDFTerm, RDFTerm, RDFTerm>
final class JenaGeneralizedTripleLikeImpl extends AbstractQuadLike<RDFTerm, RDFTerm, RDFTerm, RDFTerm>
implements JenaGeneralizedTripleLike {

JenaGeneralizedTripleLikeImpl(final RDFTerm subject, final RDFTerm predicate, final RDFTerm object) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.apache.jena.riot.Lang;
import org.apache.jena.riot.RDFDataMgr;

class JenaGraphImpl implements JenaGraph {
final class JenaGraphImpl implements JenaGraph {

private final org.apache.jena.graph.Graph graph;
private final UUID salt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.jena.graph.Node;
import org.apache.jena.graph.NodeFactory;

class JenaIRIImpl extends AbstractJenaRDFTerm implements JenaIRI {
final class JenaIRIImpl extends AbstractJenaRDFTerm implements JenaIRI {

JenaIRIImpl(final Node node) {
super(node);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.apache.commons.rdf.jena.JenaLiteral;
import org.apache.jena.graph.Node;

class JenaLiteralImpl extends AbstractJenaRDFTerm implements JenaLiteral {
final class JenaLiteralImpl extends AbstractJenaRDFTerm implements JenaLiteral {

private static final InternalJenaFactory INTERNAL_JENA_FACTORY = new InternalJenaFactory() {
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.commons.rdf.jena.ConversionException;
import org.apache.commons.rdf.jena.JenaQuad;

class JenaQuadImpl extends AbstractQuadLike<BlankNodeOrIRI, IRI, RDFTerm, BlankNodeOrIRI> implements JenaQuad {
final class JenaQuadImpl extends AbstractQuadLike<BlankNodeOrIRI, IRI, RDFTerm, BlankNodeOrIRI> implements JenaQuad {

JenaQuadImpl(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object, final Optional<BlankNodeOrIRI> graphName) {
super(subject, predicate, object, graphName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.apache.commons.rdf.jena.ConversionException;
import org.apache.commons.rdf.jena.JenaTriple;

class JenaTripleImpl extends AbstractQuadLike<BlankNodeOrIRI, IRI, RDFTerm, RDFTerm> implements JenaTriple {
final class JenaTripleImpl extends AbstractQuadLike<BlankNodeOrIRI, IRI, RDFTerm, RDFTerm> implements JenaTriple {

JenaTripleImpl(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {
super(subject, predicate, object);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public interface JsonLdDataset extends JsonLdGraphLike<org.apache.commons.rdf.api.Quad>, Dataset {
}

class JsonLdDatasetImpl extends AbstractJsonLdGraphLike<org.apache.commons.rdf.api.Quad> implements JsonLdDataset {
final class JsonLdDatasetImpl extends AbstractJsonLdGraphLike<org.apache.commons.rdf.api.Quad> implements JsonLdDataset {

JsonLdDatasetImpl(final RDFDataset rdfDataSet) {
super(rdfDataSet);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public interface JsonLdGraph extends JsonLdGraphLike<Triple>, Graph {
}

class JsonLdGraphImpl extends AbstractJsonLdGraphLike<Triple> implements JsonLdGraph {
final class JsonLdGraphImpl extends AbstractJsonLdGraphLike<Triple> implements JsonLdGraph {

private final Optional<BlankNodeOrIRI> graphName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public interface JsonLdLiteral extends JsonLdTerm, Literal {
}

class JsonLdLiteralImpl extends AbstractJsonLdTermImpl implements JsonLdLiteral {
final class JsonLdLiteralImpl extends AbstractJsonLdTermImpl implements JsonLdLiteral {

private static String lowerCase(final String langTag) {
return langTag.toLowerCase(Locale.ROOT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
public interface JsonLdUnionGraph extends JsonLdGraphLike<org.apache.commons.rdf.api.Triple>, Graph {
}

class JsonLdUnionGraphImpl extends AbstractJsonLdGraphLike<org.apache.commons.rdf.api.Triple>
final class JsonLdUnionGraphImpl extends AbstractJsonLdGraphLike<org.apache.commons.rdf.api.Triple>
implements JsonLdUnionGraph {

JsonLdUnionGraphImpl(final RDFDataset rdfDataSet) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import org.eclipse.rdf4j.repository.RepositoryConnection;
import org.eclipse.rdf4j.repository.RepositoryResult;

class RepositoryDatasetImpl extends AbstractRepositoryGraphLike<Quad> implements RDF4JDataset {
final 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import org.eclipse.rdf4j.repository.RepositoryConnection;
import org.eclipse.rdf4j.repository.RepositoryResult;

class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> implements RDF4JGraph {
final class RepositoryGraphImpl extends AbstractRepositoryGraphLike<Triple> implements RDF4JGraph {

private final Resource[] contextMask;

Expand Down

0 comments on commit 7870273

Please sign in to comment.