#59: Fix Jar Compare

* Fix bug introduced in #46
This commit is contained in:
Isaiah 2020-06-24 04:40:02 -04:00 committed by GitHub
parent a3230c15a6
commit b513228846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -87,9 +87,9 @@ public class InheritanceMap implements InheritanceProvider {
String line;
while ((line = reader.readLine()) != null) {
int commentIndex = line.indexOf('#')
int commentIndex = line.indexOf('#');
if (commentIndex != -1) {
line = line.substring(0, commentIndex)
line = line.substring(0, commentIndex);
}
if (line.isEmpty()) {
continue;

View File

@ -328,8 +328,8 @@ public class SpecialSource {
JarComparer visitor2 = visitors.second;
ClassReader clazz1, clazz2;
try (InputStream first = jars.second.getClass(classes.first);
InputStream second = jars.first.getClass(classes.second)) {
try (InputStream first = jars.first.getClass(classes.first);
InputStream second = jars.second.getClass(classes.second)) {
clazz1 = new ClassReader(first);
clazz2 = new ClassReader(second);
}