Skip to content

Commit d714d16

Browse files
committed
Изменить имя константы, чтобы пройти тест GitHub
1 parent aeb2409 commit d714d16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ru/alexgur/kanban/service/FileBackedTaskManager.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
public class FileBackedTaskManager extends InMemoryTaskManager {
2020
private File fileToSave;
21-
private DateTimeFormatter DATE_TIME_FORMATTER = Task.dateTimeFormatter;
21+
private DateTimeFormatter dateTimeFormatter = Task.dateTimeFormatter;
2222
private String eol = "\n";
2323
private String csvSplitter = ";";
2424

@@ -178,7 +178,7 @@ private <T extends Task> String toString(T task) {
178178

179179
String start = "";
180180
if (task.getStartTime() != null) {
181-
start = task.getStartTime().format(DATE_TIME_FORMATTER);
181+
start = task.getStartTime().format(dateTimeFormatter);
182182
}
183183

184184
long duration = 0;
@@ -213,7 +213,7 @@ private Object fromString(String line) {
213213
String name = args[2];
214214
String text = args[3];
215215
Status status = Status.valueOf(args[4]);
216-
LocalDateTime startTime = LocalDateTime.parse(args[5], DATE_TIME_FORMATTER);
216+
LocalDateTime startTime = LocalDateTime.parse(args[5], dateTimeFormatter);
217217
int durationMinutes = Integer.valueOf(args[6]);
218218

219219
switch (type) {

0 commit comments

Comments
 (0)