Skip to content

Commit

Permalink
JANDEX-24 Use close() not flush() so ZIP trailer is written out befor…
Browse files Browse the repository at this point in the history
…e copy
  • Loading branch information
James Livingston committed May 22, 2014
1 parent 2f96f0f commit caee996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jboss/jandex/JarIndexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static Result createJarIndex(File jarFile, Indexer indexer, boolean modif
Index index = indexer.complete();
int bytes = writer.write(index);

out.flush();
out.close();

if (modify) {
jarFile.delete();
Expand Down

0 comments on commit caee996

Please sign in to comment.