diff --git a/src/main/java/com/pyro/yolog/domain/diary/entity/Mood.java b/src/main/java/com/pyro/yolog/domain/diary/entity/Mood.java index 9bf3be1..3082801 100644 --- a/src/main/java/com/pyro/yolog/domain/diary/entity/Mood.java +++ b/src/main/java/com/pyro/yolog/domain/diary/entity/Mood.java @@ -17,12 +17,4 @@ public enum Mood { ANGRY("화나는"); private final String name; - - @JsonCreator - public static Mood parsing(String inputValue) { - return Stream.of(Mood.values()) - .filter(mood -> mood.getName().equals(inputValue)) - .findFirst() - .orElseThrow(RequestMoodNameInvalidException::new); - } } \ No newline at end of file diff --git a/src/main/java/com/pyro/yolog/domain/diary/entity/Weather.java b/src/main/java/com/pyro/yolog/domain/diary/entity/Weather.java index 8a21b52..eb9ecb0 100644 --- a/src/main/java/com/pyro/yolog/domain/diary/entity/Weather.java +++ b/src/main/java/com/pyro/yolog/domain/diary/entity/Weather.java @@ -17,12 +17,4 @@ public enum Weather { WINDS("바람"); private final String name; - - @JsonCreator - public static Weather parsing(String inputValue) { - return Stream.of(Weather.values()) - .filter(weather -> weather.getName().equals(inputValue)) - .findFirst() - .orElseThrow(RequestWeatherNameInvalidException::new); - } }