Skip to content

Commit

Permalink
Ignoring duplicate non-class files (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeTheSalad committed May 29, 2024
1 parent f277f6f commit 32a500e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A notice
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A notice
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A license
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A notice
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A notice
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public void retain(Plugin.Engine.Source.Element element) throws IOException {
outputStream.closeEntry();
} catch (ZipException exception) {
String name = element.getName();
if (!name.startsWith("META-INF") && !name.endsWith("-info.class")) {
if (!name.startsWith("META-INF") && !name.endsWith("-info.class") && name.endsWith(".class")) {
throw exception;
}
}
Expand Down

0 comments on commit 32a500e

Please sign in to comment.