gaodm %!s(int64=3) %!d(string=hai) anos
pai
achega
46b38a89f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }
         }