mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 11:06:25 +00:00
Replace deprecated NullOutputStream (#4989)
Co-authored-by: Raihaan Shouhell <raihaanhimself@gmail.com>
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user