Skip to content
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

Merged
merged 9 commits into from
Sep 13, 2023

Conversation

kevstevie
Copy link

@kevstevie kevstevie commented Sep 13, 2023

안녕하세요 새로운 리뷰어 하마드
미션 요구사항이 어디까지인지 잘 모르겠어서 @RequestMapping만 구현해서 제출합니다

구구의 커밋까지 포함돼서 커밋범위 링크 드립니다

여기

@sonarcloud
Copy link

sonarcloud bot commented Sep 13, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 15 Code Smells

28.5% 28.5% Coverage
0.0% 0.0% Duplication

warning 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.
Read more here

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link

@rawfishthelgh rawfishthelgh left a 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);
Copy link

@rawfishthelgh rawfishthelgh Sep 13, 2023

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에 존재하고 있네요
참고

@rawfishthelgh rawfishthelgh merged commit 084087d into woowacourse:kevstevie Sep 13, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants