mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 15:15:54 +00:00
Merge pull request #923 from evernat/master
Optimize and close Zip resources in ClassicPluginStrategy and FilePath
This commit is contained in:
commit
f15f49f6f4
2 files changed
+35
-25
No files matched your search
@@ -530,7 +530,12 @@ public final class FilePath implements Serializable {
|
||||
if (p != null) {
|
||||
p.mkdirs();
|
||||
}
|
||||
IOUtils.copy(zip.getInputStream(e), f);
|
||||
InputStream input = zip.getInputStream(e);
|
||||
try {
|
||||
IOUtils.copy(input, f);
|
||||
} finally {
|
||||
input.close();
|
||||
}
|
||||
try {
|
||||
FilePath target = new FilePath(f);
|
||||
int mode = e.getUnixMode();
|
||||
|
||||
Reference in new issue
Block a user