zhoutg 3 年 前
コミット
a5fc7be5f5

+ 1 - 1
common/src/main/java/com/diagbot/exception/CommonErrorCode.java

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