-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
first commit #1358
base: master
Are you sure you want to change the base?
first commit #1358
Conversation
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.
Great job on implementing the core functionality! 🎉 While there are a few minor improvements suggested, such as correcting the variable name from raport
to report
and ensuring the date range logic is inclusive, these do not critically impact the functionality. Keep up the good work, and consider the feedback for future enhancements! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
String dateFrom = "15.04.2019"; | ||
String dateTo = "31.04.2019"; | ||
|
||
String raport = SalaryInfo.getSalaryInfo(names, data, dateFrom, dateTo); |
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.
The variable name raport
seems to be a typo. It should be report
to match the standard English spelling and improve code readability.
|
||
String raport = SalaryInfo.getSalaryInfo(names, data, dateFrom, dateTo); | ||
|
||
System.out.println(raport); |
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.
Ensure that the variable name raport
is corrected to report
here as well, to maintain consistency after the change.
if (workDate.isAfter(from) && workDate.isBefore(to) | ||
|| workDate.isEqual(from) || workDate.isEqual(to)) { |
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.
The condition for checking if workDate
is within the range might be misleading. Ensure that the logic correctly includes both from
and to
dates as intended. The current condition workDate.isAfter(from) && workDate.isBefore(to) || workDate.isEqual(from) || workDate.isEqual(to)
should work, but double-check if it aligns with the task requirements for inclusivity.
No description provided.