Java

Java

Made by DeepSource

Empty jar file entries should not be created JAVA-S0039

Anti-pattern
Major

The code calls putNextEntry(), immediately followed by a call to closeEntry(). This results in an empty JarFile entry.

The contents of the entry should be written to the JarFile between the calls to putNextEntry() and closeEntry(). This may cause issues when the jar file is executed.

References