Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbcccbeatboard-strato committed Aug 23, 2024
1 parent 0533a38 commit 5d2a0bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM openjdk:17-slim
FROM openjdk:17-slim AS prod
COPY ./build/libs/am.jar am.jar
ENTRYPOINT ["java", "-jar","am.jar"]
4 changes: 1 addition & 3 deletions src/main/java/kr/co/mcmp/api/response/ResponseCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ public enum ResponseCode {
Stream.of(values()).collect(Collectors.toMap(ResponseCode::getCode, e -> e));

public static ResponseCode findByCode(int code) {
//test
//return Optional.ofNullable(map.get(code)).orElseThrow(() -> new McmpException(ResponseCode.UNKNOWN_ERROR));
return null;
return Optional.ofNullable(map.get(code)).orElseThrow(() -> new McmpException(String.valueOf(ResponseCode.UNKNOWN_ERROR)));
}
}

0 comments on commit 5d2a0bf

Please sign in to comment.