Skip to content

Sprint 6 solution#2

Merged
CrodiYa merged 10 commits intomainfrom
sprint_6-solution
Aug 4, 2025
Merged

Sprint 6 solution#2
CrodiYa merged 10 commits intomainfrom
sprint_6-solution

Conversation

@CrodiYa
Copy link
Owner

@CrodiYa CrodiYa commented Aug 3, 2025

Добавлена новая функциональность для InMemoryHistoryManager.
Способ хранения истории изменен на кастомный связный список + хэш-таблица.
В InMemoryTaskManager обновлены методы удаления задач так, чтобы они удалились и из истории.

Choose a reason for hiding this comment

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

Класс должен быть публичным

Choose a reason for hiding this comment

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

Уверены что по дефолту package-private?
И почему вдруг полям не нужно указывать модификаторы доступа при дефолтном модификаторе доступа класса?

Джава, язык жесткой типизации, и именно за это ценится, код сам по себе и так сложен, не нужно усложнять его чтение. То что можно не указывать, не значит что так принято, так вот, полям принято всегда указывать модификаторы доступа, привыкайте.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Если я правильно понял, то package-private (или no modifier) является дефолтным как для класса, так и для поля
https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html
поменял модификаторы, а поля сделал private, добавил get и set методы

Choose a reason for hiding this comment

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

Класс должен быть публичным

Choose a reason for hiding this comment

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

Класс должен быть публичным

@CrodiYa CrodiYa merged commit 37dc46c into main Aug 4, 2025
1 check 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.

2 participants

Comments