Improve exception message on noncomparable jars
Show the mismatched number of symbols
This commit is contained in:
parent
1b86fa2de3
commit
ef37d9f8e6
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user