Skip to content

Commit

Permalink
Set private constructor to hide implicit public constructor (Sonar)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeebot[bot] authored and nahsra committed Mar 19, 2024
1 parent eaa8457 commit bf624ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/** Commands for checking and creating the local repository directory if it doesn't exist. */
class CheckLocalRepositoryDirCommand {

private CheckLocalRepositoryDirCommand() {
}

static class CheckParentDirCommand extends AbstractQueryCommand {

private static final CheckParentDirCommand INSTANCE = new CheckParentDirCommand();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@

/** Internal Tag Object for Ignorable Messages */
class Ignorable {
private Ignorable() {
}

public static final Logger LOGGER = LoggerFactory.getLogger(Ignorable.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
*/
class POMDocumentFactory {

private POMDocumentFactory() {
}

/**
* Loads a POM document from the provided input stream.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
/** Common Utilities */
class Util {

private Util() {
}

private static final Logger LOGGER = LoggerFactory.getLogger(Util.class);

/** Represents a Property Reference - as a regex */
Expand Down

0 comments on commit bf624ad

Please sign in to comment.