(final File file)
| 77 | } |
| 78 | |
| 79 | @Override |
| 80 | protected Deck read(final File file) { |
| 81 | final Map<String, List<String>> sections = FileSection.parseSections(FileUtil.readFile(file)); |
| 82 | Deck result = DeckSerializer.fromSections(sections); |
| 83 | |
| 84 | if (moveWronglyNamedDecks) { |
| 85 | adjustFileLocation(file, result); |
| 86 | } |
| 87 | |
| 88 | if (result != null) { |
| 89 | result.setDirectory(file.getParent().substring(rootDir.length())); |
| 90 | } |
| 91 | return result; |
| 92 | } |
| 93 | |
| 94 | private static void adjustFileLocation(final File file, final Deck result) { |
| 95 | if (result == null) { |
nothing calls this directly
no test coverage detected