Skip to content

Sprint 7 solution in file manager - #5

Closed
Darya346 wants to merge 14 commits into
mainfrom
sprint_7-solution-in-file-manager
Closed

Darya346 wants to merge 14 commits into
mainfrom
sprint_7-solution-in-file-manager

Conversation

@Darya346

Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/manager/FileBackedTaskManager.java Outdated
subtask.setId(id);
return subtask;
default:
throw new IllegalArgumentException("Неизвестный тип задачи: " + type);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Лучше использовать String.format

Comment thread src/manager/FileBackedTaskManager.java Outdated
String[] lines = content.split("\n");

// Пропускаем заголовок и пустые строки
for (int i = 1; i < lines.length; i++) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Переменные лучше называть осмысленно

@Darya346 Darya346 closed this Jul 6, 2026
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