Improve exception message on noncomparable jars

Show the mismatched number of symbols
This commit is contained in:
Agaricus 2013-03-16 10:10:48 -07:00
parent 1b86fa2de3
commit ef37d9f8e6

View File

@ -253,13 +253,13 @@ public class SpecialSource {
public static void validate(JarComparer visitor1, JarComparer visitor2) { public static void validate(JarComparer visitor1, JarComparer visitor2) {
if (visitor1.classes.size() != visitor2.classes.size()) { if (visitor1.classes.size() != visitor2.classes.size()) {
throw new IllegalStateException("classes"); throw new IllegalStateException("classes "+visitor1.classes.size()+" != "+visitor2.classes.size());
} }
if (visitor1.fields.size() != visitor2.fields.size()) { if (visitor1.fields.size() != visitor2.fields.size()) {
throw new IllegalStateException("fields"); throw new IllegalStateException("fields "+visitor1.fields.size()+" != "+visitor2.fields.size());
} }
if (visitor1.methods.size() != visitor2.methods.size()) { if (visitor1.methods.size() != visitor2.methods.size()) {
throw new IllegalStateException("methods"); throw new IllegalStateException("methods "+visitor1.methods.size()+" != "+visitor2.methods.size());
} }
} }
} }