Skip to content

Commit

Permalink
Allow jars to contain module-info.class files (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdanfox authored May 8, 2018
1 parent de7737c commit a987a60
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public void analyzeConfiguration(Configuration configuration) {
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);
Expand Down

0 comments on commit a987a60

Please sign in to comment.