diff options
| author | 2015-03-09 12:53:11 -0400 | |
|---|---|---|
| committer | 2015-03-09 12:53:11 -0400 | |
| commit | d6b2a223a7973941e5e4fb45c8ceec4885891496 (patch) | |
| tree | 5728ab513d0b4ed85a720da7eb48c6591dd3f8b0 /src/cuchaz/enigma/convert/MatchesReader.java | |
| parent | add tracking for mismatched fields/methods (diff) | |
| download | enigma-fork-d6b2a223a7973941e5e4fb45c8ceec4885891496.tar.gz enigma-fork-d6b2a223a7973941e5e4fb45c8ceec4885891496.tar.xz enigma-fork-d6b2a223a7973941e5e4fb45c8ceec4885891496.zip | |
starting on field matching gui
Diffstat (limited to 'src/cuchaz/enigma/convert/MatchesReader.java')
| -rw-r--r-- | src/cuchaz/enigma/convert/MatchesReader.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cuchaz/enigma/convert/MatchesReader.java b/src/cuchaz/enigma/convert/MatchesReader.java index 808f8d0..b43535c 100644 --- a/src/cuchaz/enigma/convert/MatchesReader.java +++ b/src/cuchaz/enigma/convert/MatchesReader.java | |||
| @@ -14,19 +14,19 @@ import cuchaz.enigma.mapping.ClassEntry; | |||
| 14 | 14 | ||
| 15 | public class MatchesReader { | 15 | public class MatchesReader { |
| 16 | 16 | ||
| 17 | public static Matches read(File file) | 17 | public static ClassMatches readClasses(File file) |
| 18 | throws IOException { | 18 | throws IOException { |
| 19 | try (BufferedReader in = new BufferedReader(new FileReader(file))) { | 19 | try (BufferedReader in = new BufferedReader(new FileReader(file))) { |
| 20 | Matches matches = new Matches(); | 20 | ClassMatches matches = new ClassMatches(); |
| 21 | String line = null; | 21 | String line = null; |
| 22 | while ((line = in.readLine()) != null) { | 22 | while ((line = in.readLine()) != null) { |
| 23 | matches.add(readMatch(line)); | 23 | matches.add(readClassMatch(line)); |
| 24 | } | 24 | } |
| 25 | return matches; | 25 | return matches; |
| 26 | } | 26 | } |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | private static ClassMatch readMatch(String line) | 29 | private static ClassMatch readClassMatch(String line) |
| 30 | throws IOException { | 30 | throws IOException { |
| 31 | String[] sides = line.split(":", 2); | 31 | String[] sides = line.split(":", 2); |
| 32 | return new ClassMatch(readClasses(sides[0]), readClasses(sides[1])); | 32 | return new ClassMatch(readClasses(sides[0]), readClasses(sides[1])); |