Allow jars to contain module-info.class files
@@ -76,6 +76,12 @@ public final class ClassUniquenessAnalyzer {
continue;
}
+ if (entry.getName().equals("module-info.class")) {
+ // Java 9 allows jars to have a module-info.class file in the root,
+ // we shouldn't complain about these.
+ continue;
+ }
+
String className = entry.getName().replaceAll("/", ".").replaceAll(".class", "");
HashingInputStream inputStream = new HashingInputStream(Hashing.sha256(), jarInputStream);
ByteStreams.exhaust(inputStream);
