Skip to content

fix: correct Javadoc for float/double finite constraint#24

Merged
JunggiKim merged 2 commits intomainfrom
fix/javadoc-finite-constraint
Mar 16, 2026
Merged

fix: correct Javadoc for float/double finite constraint#24
JunggiKim merged 2 commits intomainfrom
fix/javadoc-finite-constraint

Conversation

@JunggiKim
Copy link
Copy Markdown
Owner

@JunggiKim JunggiKim commented Mar 16, 2026

Summary

  • Float/Double 부호 타입 10개의 Javadoc에 누락된 finite 제약 조건을 추가합니다.
    • 실제 제약은 Float.isFinite(value) && value > 0 등으로 finite 검사를 포함하지만, Javadoc에 반영되지 않았습니다.
    • POSITIVE_INFINITYPositiveFloat에 허용된다고 오해할 수 있는 문제를 해결합니다.
  • NonZeroBigDecimal, NonZeroBigInteger의 Javadoc에 ({@code != 0}) 표기를 추가하여 다른 NonZero 타입과 일관성을 맞춥니다.

Changed files (12)

  • PositiveFloat, PositiveDouble, NegativeFloat, NegativeDouble
  • NonNegativeFloat, NonNegativeDouble, NonPositiveFloat, NonPositiveDouble
  • NonZeroFloat, NonZeroDouble
  • NonZeroBigDecimal, NonZeroBigInteger

Test plan

  • ./gradlew javadoc 빌드 성공 확인
  • 각 Javadoc이 RefinedSupport.java의 실제 제약 로직과 일치하는지 확인
  • README 타입 매트릭스의 설명과 Javadoc이 일치하는지 확인

🤖 Generated with Claude Code

JunggiKim and others added 2 commits March 16, 2026 15:20
…onsistency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JunggiKim JunggiKim merged commit 38289e2 into main Mar 16, 2026
3 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.

1 participant