gaodm 3 years ago
parent
commit
46b38a89f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/diagbot/exception/ServiceErrorCode.java

+ 1 - 1
src/main/java/com/diagbot/exception/ServiceErrorCode.java

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