-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code clean-up #185
Code clean-up #185
Changes from 7 commits
d01f456
9a181b1
4ee389f
b094fa6
e27aa3d
efc1c89
e9be4c8
a5808c5
bacc03a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,11 +367,8 @@ public interface StashAwareArtifactManager /* extends ArtifactManager */ { | |
Map<String,String> files = new HashMap<>(); | ||
for (String path : srcroot.list("**/*", null, false)) { | ||
files.put(path, path); | ||
InputStream in = srcroot.child(path).open(); | ||
try { | ||
try(InputStream in = srcroot.child(path).open()) { | ||
dstDir.child(path).copyFrom(in); | ||
} finally { | ||
IOUtils.closeQuietly(in); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix imports? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no unused imports left or do you mean reordering / grouping? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not check, I just guessed that |
||
} | ||
} | ||
if (!files.isEmpty()) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to
throws
clauses like this break source compatibility withCpsFlowExecution
in https://github.com/jenkinsci/workflow-cps-plugin and need to be reverted:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed this is wrong and should be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dwnusbaum if you approve #201 I can cut a release to fix this.