|
@@ -40,7 +40,7 @@ public enum ServiceErrorCode implements ErrorCode {
|
|
|
|
|
|
public static ServiceErrorCode codeOf(String code) {
|
|
public static ServiceErrorCode codeOf(String code) {
|
|
for (ServiceErrorCode state : values()) {
|
|
for (ServiceErrorCode state : values()) {
|
|
- if (state.getCode() == code) {
|
|
|
|
|
|
+ if (state.getCode().equals(code)) {
|
|
return state;
|
|
return state;
|
|
}
|
|
}
|
|
}
|
|
}
|