Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e7e7c68

Browse files
refactor(base): rename DEFAULT_BASE_ERROR_CODE to INSTANCE in DefaultBaseErrorCodeHolder
1 parent 2b26b0b commit e7e7c68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/main/java/letsdev/common/exception/support/BaseCustomException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ public BaseCustomException(
7878
}
7979

8080
private static BaseErrorCode getDefaultErrorCode() {
81-
return DefaultBaseErrorCodeHolder.DEFAULT_BASE_ERROR_CODE;
81+
return DefaultBaseErrorCodeHolder.INSTANCE;
8282
}
8383

8484
public BaseErrorCode getErrorCode() {
8585
return errorCode;
8686
}
8787

8888
private static class DefaultBaseErrorCodeHolder { // 사용할 때 로드 + 스레드 세이프(클래스 로드 타임은 동시성 보장됨.)
89-
private static final BaseErrorCode DEFAULT_BASE_ERROR_CODE = new BaseErrorCode() {
89+
private static final BaseErrorCode INSTANCE = new BaseErrorCode() {
9090
@Override
9191
public String name() {
9292
return "SERVER_ERROR";

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /