SRG files can still be valid even without that check - they may not be mapping complete jars. That belongs in debug log at best.

This commit is contained in:
md_5 2013-02-04 20:22:13 +11:00
parent 147a04ddfc
commit 45ccb010c0

View File

@ -152,16 +152,6 @@ public class JarMapping {
String newClassName = newFull.substring(0, splitNew); String newClassName = newFull.substring(0, splitNew);
String newFieldName = newFull.substring(splitNew + 1); String newFieldName = newFull.substring(splitNew + 1);
// Validate the redundancies
if (!classes.containsKey(oldClassName)) {
throw new IllegalArgumentException("Field mapping on an unmapped class: " + oldClassName +
" for field "+oldFieldName+" in line="+line);
}
if (!classes.get(oldClassName).equals(newClassName)) {
throw new IllegalArgumentException("Field mapping inconsistent: new class "+newClassName +
" but expected "+classes.get(oldClassName)+" in line="+line);
}
fields.put(oldClassName + "/" + oldFieldName, newFieldName); fields.put(oldClassName + "/" + oldFieldName, newFieldName);
} else if (kind.equals("MD:")) { } else if (kind.equals("MD:")) {
String oldFull = tokens[1]; String oldFull = tokens[1];