Skip to content

Commit bf624ad

Browse files
pixeebot[bot]nahsra
authored andcommitted
Set private constructor to hide implicit public constructor (Sonar)
1 parent eaa8457 commit bf624ad

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/CheckLocalRepositoryDirCommand.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
/** Commands for checking and creating the local repository directory if it doesn't exist. */
88
class CheckLocalRepositoryDirCommand {
99

10+
private CheckLocalRepositoryDirCommand() {
11+
}
12+
1013
static class CheckParentDirCommand extends AbstractQueryCommand {
1114

1215
private static final CheckParentDirCommand INSTANCE = new CheckParentDirCommand();

plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/Ignorable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55

66
/** Internal Tag Object for Ignorable Messages */
77
class Ignorable {
8+
private Ignorable() {
9+
}
10+
811
public static final Logger LOGGER = LoggerFactory.getLogger(Ignorable.class);
912
}

plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/POMDocumentFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818
class POMDocumentFactory {
1919

20+
private POMDocumentFactory() {
21+
}
22+
2023
/**
2124
* Loads a POM document from the provided input stream.
2225
*

plugins/codemodder-plugin-maven/src/main/java/io/codemodder/plugins/maven/operator/Util.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
/** Common Utilities */
2222
class Util {
2323

24+
private Util() {
25+
}
26+
2427
private static final Logger LOGGER = LoggerFactory.getLogger(Util.class);
2528

2629
/** Represents a Property Reference - as a regex */

0 commit comments

Comments
 (0)