docs(sample): Javadoc @param 이름을 실제 파라미터명으로 수정 - #70
Merged
jei007 merged 1 commit intoSep 3, 2026
Conversation
EgovSampleService 의 selectSampleList·selectSampleListTotCnt 는 파라미터가 vo 인데 @PARAM searchVO 로 적혀 있었다. 같은 시그니처를 구현체 EgovSampleServiceImpl 과 SampleMapper 는 @PARAM vo 로 적는다. EgovSampleController.updateSampleView 는 (SampleVO sampleVO, Model model) 을 받는데 @PARAM id 로 적혀 있었다. Javadoc 이 달린 나머지 핸들러 다섯 개는 모두 @PARAM sampleVO 를 쓴다. javadoc -Xdoclint:all 의 'error: @PARAM name not found' 3건과 그에 딸린 'no @PARAM for ...' 경고 3건이 해소된다. 주석 3줄만 바뀌어 바이트코드는 그대로다.
jei007
approved these changes
Sep 3, 2026
jei007
left a comment
Contributor
There was a problem hiding this comment.
표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
수정 사유 Reason for modification
수정된 소스 내용 Modified source
Javadoc
@param세 줄이 실제 파라미터에 없는 이름을 적고 있습니다. 고칠 이름은 같은 파일과 같은 계층이 정해 줍니다.sample/service/EgovSampleService.javasearchVOvosample/service/EgovSampleService.javasearchVOvosample/web/EgovSampleController.javaidsampleVOselectSampleList·selectSampleListTotCnt는 구현체EgovSampleServiceImpl과SampleMapper가 같은 시그니처를@param vo로 적고 있어 인터페이스만 어긋나 있습니다.updateSampleView는 같은 컨트롤러에서 Javadoc 이 달린 나머지 핸들러 다섯 개가 모두@param sampleVO를 쓰고, 이 메서드에도id라는 파라미터가 없습니다.pom.xml에 maven-javadoc-plugin 설정이 없어 빌드에서는 드러나지 않습니다.주석 3줄만 바꾸었고 코드와 시그니처는 그대로입니다(2파일, +3/-3). 줄바꿈(CRLF)은 원본대로 보존했습니다.
검증
javadoc -Xdoclint:all로 두 파일의 수정 전후를 비교했습니다(JDK 21,-sourcepath src/main/java와 프로젝트 의존성 classpath 지정).수정 전
수정 후 세 줄이 사라집니다. 이름이 어긋난
@param이 실제 파라미터를 문서화하지 못해 함께 떠 있던no @param for sampleVO/no @param for vo경고 3건도 같이 해소됩니다.src/main/java전체를@param이름 대 시그니처로 대조했고 어긋난 곳은 위 세 줄뿐입니다.void메서드에 붙은@return void형표기는 이 저장소 전반의 관례라 손대지 않았습니다.JUnit 테스트 JUnit tests
주석만 바뀌어 바이트코드가 그대로이므로 단위 테스트는 해당 없습니다. 위
javadoc실행으로 대신했습니다.테스트 브라우저 Test Browser
해당 없음 (화면 영향 없음)
테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video
위
javadoc출력으로 대신합니다.