diff options
| author | 2017-03-07 21:24:39 +0100 | |
|---|---|---|
| committer | 2017-03-07 21:30:02 +0100 | |
| commit | b4aaff683d78ab92b83f3a7257c33b8e27d1affa (patch) | |
| tree | f23c9bb0927d83cc7302881266b7df8fd37959c7 /src/main/java/cuchaz/enigma/convert/MatchesReader.java | |
| parent | Avoid crash of the matcher when the obf name is invalid (set a deob it using ... (diff) | |
| download | enigma-fork-b4aaff683d78ab92b83f3a7257c33b8e27d1affa.tar.gz enigma-fork-b4aaff683d78ab92b83f3a7257c33b8e27d1affa.tar.xz enigma-fork-b4aaff683d78ab92b83f3a7257c33b8e27d1affa.zip | |
Drop unix case style and implement hashCode when equals is overrided
Also update Guava to version 21
Diffstat (limited to 'src/main/java/cuchaz/enigma/convert/MatchesReader.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/convert/MatchesReader.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/cuchaz/enigma/convert/MatchesReader.java b/src/main/java/cuchaz/enigma/convert/MatchesReader.java index 550da49..d86d6c2 100644 --- a/src/main/java/cuchaz/enigma/convert/MatchesReader.java +++ b/src/main/java/cuchaz/enigma/convert/MatchesReader.java | |||
| @@ -34,8 +34,7 @@ public class MatchesReader { | |||
| 34 | } | 34 | } |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | private static ClassMatch readClassMatch(String line) | 37 | private static ClassMatch readClassMatch(String line) { |
| 38 | throws IOException { | ||
| 39 | String[] sides = line.split(":", 2); | 38 | String[] sides = line.split(":", 2); |
| 40 | return new ClassMatch(readClasses(sides[0]), readClasses(sides[1])); | 39 | return new ClassMatch(readClasses(sides[0]), readClasses(sides[1])); |
| 41 | } | 40 | } |
| @@ -54,7 +53,7 @@ public class MatchesReader { | |||
| 54 | public static <T extends Entry> MemberMatches<T> readMembers(File file) | 53 | public static <T extends Entry> MemberMatches<T> readMembers(File file) |
| 55 | throws IOException { | 54 | throws IOException { |
| 56 | try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file), Charset.forName("UTF-8")))) { | 55 | try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file), Charset.forName("UTF-8")))) { |
| 57 | MemberMatches<T> matches = new MemberMatches<T>(); | 56 | MemberMatches<T> matches = new MemberMatches<>(); |
| 58 | String line; | 57 | String line; |
| 59 | while ((line = in.readLine()) != null) { | 58 | while ((line = in.readLine()) != null) { |
| 60 | readMemberMatch(matches, line); | 59 | readMemberMatch(matches, line); |