Commit 75b14bc
committed
lesson3. Устранение недостатков
почему ты не используешь Ctrl + Alt + L
SortedArrayStorage
resumeCounter-index-1
resumeCounter-indexResume
indexResume+1
indexResume=-index - 1
не пишем мы слитно (edited)
- в методе update
срабатывает это условие
if (index < 0) {
System.out.println("ERROR: resume with UUID = " + resume.getUuid() + " didn't found. Resume can't be updated.");
}
и резюме все равно обновляется1 parent 8ebf9f9 commit 75b14bc
File tree
2 files changed
+4
-3
lines changed- src/com/urise/webapp/storage
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
0 commit comments