From 06f5aca2c19d62a04e7e722f46094342feb3ed7a Mon Sep 17 00:00:00 2001 From: Thog Date: Mon, 17 Oct 2016 12:10:54 +0200 Subject: Preparing needed things for the modification --- src/main/java/cuchaz/enigma/convert/MappingsConverter.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/main/java/cuchaz/enigma/convert') diff --git a/src/main/java/cuchaz/enigma/convert/MappingsConverter.java b/src/main/java/cuchaz/enigma/convert/MappingsConverter.java index a80d9ce..aa80014 100644 --- a/src/main/java/cuchaz/enigma/convert/MappingsConverter.java +++ b/src/main/java/cuchaz/enigma/convert/MappingsConverter.java @@ -364,11 +364,9 @@ public class MappingsConverter { public Set filterEntries(Collection obfDestFields, BehaviorEntry obfSourceField, ClassMatches classMatches) { Set out = Sets.newHashSet(); for (BehaviorEntry obfDestField : obfDestFields) { - Signature translatedDestSignature = translate(obfDestField.getSignature(), - classMatches.getUniqueMatches().inverse()); - if ((translatedDestSignature == null && obfSourceField.getSignature() == null) - || translatedDestSignature != null && obfSourceField.getSignature() != null - && translatedDestSignature.equals(obfSourceField.getSignature())) + // Try to translate the signature + Signature translatedDestSignature = translate(obfDestField.getSignature(), classMatches.getUniqueMatches().inverse()); + if (translatedDestSignature != null && obfSourceField.getSignature() != null && translatedDestSignature.equals(obfSourceField.getSignature())) out.add(obfDestField); } return out; -- cgit v1.2.3