Replace deprecated NullOutputStream (#4989)

Co-authored-by: Raihaan Shouhell <raihaanhimself@gmail.com>
This commit is contained in:
StefanSpiekerandRaihaan Shouhell authored and GitHub committed 2020-10-13 08:10:55 +01:00
1 parent c4a6df6c6d
commit 4499ad6ffd
7 files changed
+9 -9

No files matched your search

@@ -535,7 +535,7 @@ public class ClassicPluginStrategy implements PluginStrategy {
final long dirTime = archive.lastModified();
// this ZipOutputStream is reused and not created for each directory
try (ZipOutputStream wrappedZOut = new ZipOutputStream(new NullOutputStream()) {
try (ZipOutputStream wrappedZOut = new ZipOutputStream(NullOutputStream.NULL_OUTPUT_STREAM) {
@Override
public void putNextEntry(ZipEntry ze) throws IOException {
ze.setTime(dirTime+1999); // roundup