gaodm 3 năm trước cách đây
mục cha
commit
46b38a89f8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
             }
         }