[PMD] ClassWithOnlyPrivateConstructorsShouldBeFinal

This commit is contained in:
김현주
2025-07-18 10:05:49 +09:00
parent af8d10f7fe
commit 537f973778
6 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ package app.module.core.config.application.util;
import app.module.core.config.adapters.persistence.component.AuditCommand;
public class AuditUtil {
public final class AuditUtil {
private AuditUtil() {}
public static <T extends AuditCommand> T create(T cmd) {

View File

@@ -1,6 +1,6 @@
package app.module.core.config.constants;
public class CommonConstants {
public final class CommonConstants {
private CommonConstants() {
throw new IllegalAccessError("어플리케이션에서 공통으로 사용되는 상수 클래스로 생성자를 사용할 수 없습니다.");
}

View File

@@ -1,6 +1,6 @@
package app.module.core.config.constants;
public class DailyRecordConstants {
public final class DailyRecordConstants {
private DailyRecordConstants() {
throw new IllegalAccessError("어플리케이션에서 일계부에서 사용되는 상수 클래스로 생성자를 사용할 수 없습니다.");
}