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

first commit #1358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lisichenkowork
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a 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);

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);

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.

Comment on lines +28 to +29
if (workDate.isAfter(from) && workDate.isBefore(to)
|| workDate.isEqual(from) || workDate.isEqual(to)) {

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.

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.

2 participants