-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mvc step1 주드 미션 제출합니다 #342
Conversation
SonarCloud Quality Gate failed. 0 Bugs 28.5% Coverage The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
헤이 주드~
리뷰어 하마드입니다.
1단계 미션 기가 막히게 구현해주셨네요 바로 approve 하겠습니다.
다만 의견이 궁금한 부분이 있어 하나 코멘트 달았는데 확인해주시고,
소신에 맞게 반영해주세요!
Method[] methods = controller.getMethods(); | ||
Arrays.stream(methods) | ||
.filter(method -> method.isAnnotationPresent(RequestMapping.class)) | ||
.forEach(this::putHandlers); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A
stream의 forEach
연산은 가급적 출력용으로만 사용하는게 좋을 것 같다는 생각이 드는데, 어떻게 생각하시나요?
현재는 stream 외부 변수에 영향을 주는 로직이 forEach
에 존재하고 있네요
참고
안녕하세요 새로운 리뷰어 하마드
미션 요구사항이 어디까지인지 잘 모르겠어서 @RequestMapping만 구현해서 제출합니다
구구의 커밋까지 포함돼서 커밋범위 링크 드립니다
여기