Skip to content

Commit c04b760

Browse files
author
Faisal Hameed
committed
Fixing squid:S1118 - Utility classes should not have public constructors.
1 parent 11a910e commit c04b760

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

common/src/main/java/net/fortytwo/sesametools/Formatting.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* @author Joshua Shinavier (http://fortytwo.net)
99
*/
1010
public class Formatting {
11+
12+
private Formatting() {
13+
14+
}
1115

1216
private static final int
1317
FOUR = 4,

common/src/main/java/net/fortytwo/sesametools/SesameTools.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public class SesameTools {
2323
throw new ExceptionInInitializerError(e);
2424
}
2525
}
26+
27+
private SesameTools() {
28+
29+
}
2630

2731
public static Properties getProperties() {
2832
return PROPERTIES;

deduplication-sail/src/main/java/net/fortytwo/sesametools/deduplication/DuplicateStatementFinder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
*/
1717
public class DuplicateStatementFinder {
1818
private static final ValueFactory valueFactory = SimpleValueFactory.getInstance();
19+
20+
private DuplicateStatementFinder() {
21+
22+
}
1923

2024
public static Set<Statement> findDuplicateStatements(final SailConnection sc) throws SailException {
2125
boolean includeInferred = false;

linked-data-server/src/main/java/net/fortytwo/sesametools/ldserver/RDFMediaTypes.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public class RDFMediaTypes {
3939
RDF_VARIANTS.add(v);
4040
}
4141
}
42+
43+
private RDFMediaTypes() {
44+
45+
}
4246

4347
public static List<Variant> getRDFVariants() {
4448
return RDF_VARIANTS;

uri-translator/src/main/java/net/fortytwo/sesametools/URITranslator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
*/
2525
public class URITranslator {
2626
private final static Logger logger = LoggerFactory.getLogger(URITranslator.class);
27+
28+
private URITranslator() {
29+
30+
}
2731

2832
/**
2933
* Maps IRIs for all triples in the given contexts in the given repository, between the input

0 commit comments

Comments
 (0)