-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix javadoc warnings #11
Conversation
WalkthroughThe changes in this pull request focus on modifications to the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java (1)
208-213
: Consider enhancing the parameter documentation.While the parameter name is now correct, consider improving the documentation:
- The description could better explain that this parameter sets which day should appear first in the selector
- The
@throws
clause should specify the invalid values that trigger the exceptionConsider updating to:
/** * Sets the first day of the week. * <p> * 0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, 4 for Thursday, 5 for Friday, 6 for * Saturday. * - * @param first the index of the first day of the week - * @throws IllegalArgumentException if firstDayOfWeek is invalid + * @param first the day that should appear first in the selector + * @throws IllegalArgumentException if the provided DayOfWeek is null */
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
pom.xml
(1 hunks)src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java
(1 hunks)
🔇 Additional comments (3)
src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java (2)
211-211
: LGTM! Parameter name now matches the method signature.
The Javadoc parameter name has been correctly updated to match the method signature, fixing the warning.
Line range hint 182-193
: LGTM! Removed incorrect @return tag.
The documentation is now correct for this void method, fixing the Javadoc warning.
pom.xml (1)
308-308
: LGTM! Setting failOnWarnings
to true enforces better documentation quality.
This change aligns with the PR objectives to fix Javadoc warnings by making the build fail when warnings are present. This is a good practice that helps maintain high-quality documentation.
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.
LGTM
Close #8 & #10
Summary by CodeRabbit
New Features
DayOfWeekSelector
class.Bug Fixes
setWeekDaysShort
method.Chores