Skip to content

Commit

Permalink
refactor: refactor bad smell UtilityClassWithoutPrivateConstructor (#386
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MartinWitt authored Jan 2, 2023
1 parent 3496b11 commit 622c05c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

public class ImportHelper {

private ImportHelper() {
// UtilityClass
}

public static void addImport(CtImport ctImport, CtCompilationUnit uni) {
List<CtImport> imports = uni.getImports();
if (!imports.contains(ctImport)) {
Expand Down

0 comments on commit 622c05c

Please sign in to comment.