diff options
| author | 2016-07-02 20:13:13 +1000 | |
|---|---|---|
| committer | 2016-07-02 20:13:13 +1000 | |
| commit | 74edc74c2c7b3236f00bf92499bb884837673b7d (patch) | |
| tree | 155556b4d6e390574f16082583f2853e35e3c716 /src/main/java/cuchaz/enigma/convert/ClassMatching.java | |
| parent | Renamed Fields (diff) | |
| download | enigma-fork-74edc74c2c7b3236f00bf92499bb884837673b7d.tar.gz enigma-fork-74edc74c2c7b3236f00bf92499bb884837673b7d.tar.xz enigma-fork-74edc74c2c7b3236f00bf92499bb884837673b7d.zip | |
Reformatting code
Diffstat (limited to 'src/main/java/cuchaz/enigma/convert/ClassMatching.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/convert/ClassMatching.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/java/cuchaz/enigma/convert/ClassMatching.java b/src/main/java/cuchaz/enigma/convert/ClassMatching.java index 9350ea7..194b6c4 100644 --- a/src/main/java/cuchaz/enigma/convert/ClassMatching.java +++ b/src/main/java/cuchaz/enigma/convert/ClassMatching.java | |||
| @@ -55,23 +55,14 @@ public class ClassMatching { | |||
| 55 | public Collection<ClassMatch> matches() { | 55 | public Collection<ClassMatch> matches() { |
| 56 | List<ClassMatch> matches = Lists.newArrayList(); | 56 | List<ClassMatch> matches = Lists.newArrayList(); |
| 57 | for (Entry<ClassEntry, ClassEntry> entry : m_knownMatches.entrySet()) { | 57 | for (Entry<ClassEntry, ClassEntry> entry : m_knownMatches.entrySet()) { |
| 58 | matches.add(new ClassMatch( | 58 | matches.add(new ClassMatch(entry.getKey(), entry.getValue())); |
| 59 | entry.getKey(), | ||
| 60 | entry.getValue() | ||
| 61 | )); | ||
| 62 | } | 59 | } |
| 63 | for (ClassIdentity identity : m_sourceClasses.identities()) { | 60 | for (ClassIdentity identity : m_sourceClasses.identities()) { |
| 64 | matches.add(new ClassMatch( | 61 | matches.add(new ClassMatch(m_sourceClasses.getClasses(identity), m_destClasses.getClasses(identity))); |
| 65 | m_sourceClasses.getClasses(identity), | ||
| 66 | m_destClasses.getClasses(identity) | ||
| 67 | )); | ||
| 68 | } | 62 | } |
| 69 | for (ClassIdentity identity : m_destClasses.identities()) { | 63 | for (ClassIdentity identity : m_destClasses.identities()) { |
| 70 | if (!m_sourceClasses.containsIdentity(identity)) { | 64 | if (!m_sourceClasses.containsIdentity(identity)) { |
| 71 | matches.add(new ClassMatch( | 65 | matches.add(new ClassMatch(new ArrayList<>(), m_destClasses.getClasses(identity))); |
| 72 | new ArrayList<>(), | ||
| 73 | m_destClasses.getClasses(identity) | ||
| 74 | )); | ||
| 75 | } | 66 | } |
| 76 | } | 67 | } |
| 77 | return matches; | 68 | return matches; |