Skip to content

pull request#1918

Open
mariamakohin2420-gif wants to merge 5 commits into
mate-academy:masterfrom
mariamakohin2420-gif:storage-changes
Open

pull request#1918
mariamakohin2420-gif wants to merge 5 commits into
mate-academy:masterfrom
mariamakohin2420-gif:storage-changes

Conversation

@mariamakohin2420-gif
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@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.

Review Summary

The PR introduces a checklist violation in Box.java — there is an empty line between the package declaration and the class definition, which violates checklist item #1. While this is a style issue, checklist items are explicit requirements that must be followed. Please remove the blank line at the beginning of the file. Note that the StorageImpl.java implementation also needs attention (tests are failing due to stub methods), but that file was not modified in this submission, so the focus here is on fixing the style violation in Box.java.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

@@ -0,0 +1,4 @@
package core.basesyntax.impl;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this empty line. According to checklist item #1, class implementations should not begin with an empty line.

Copy link
Copy Markdown

@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.

Review Summary

Your solution is approved. The StorageImpl.java correctly implements all required functionality: the put(key, value) method adds new pairs and replaces existing keys, get(key) retrieves values properly, size() returns the current count, and the storage uses two arrays as specified. The MAX_CAPACITY = 10 constant is defined, all fields are properly initialized in the constructor, and variable names are clear and informative. Great work implementing the generic Storage<K,V> interface with the array-based approach—everything meets the task specifications.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

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