Skip to content

Commit fff559e

Browse files
Bump org.jenkins-ci.plugins:plugin from 5.7 to 5.9 (#594)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent bb4aac2 commit fff559e

4 files changed

Lines changed: 1 addition & 8 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.jenkins-ci.plugins</groupId>
66
<artifactId>plugin</artifactId>
7-
<version>5.7</version>
7+
<version>5.9</version>
88
<relativePath/>
99
</parent>
1010

src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/GroovySandbox.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
package org.jenkinsci.plugins.scriptsecurity.sandbox.groovy;
2626

27-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2827
import groovy.grape.GrabAnnotationTransformation;
2928
import groovy.lang.Binding;
3029
import groovy.lang.GroovyClassLoader;
@@ -293,7 +292,6 @@ public Object run() {
293292
*
294293
* See {@link #createSecureCompilerConfiguration()} for the discussion.
295294
*/
296-
@SuppressFBWarnings(value = "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", justification = "Should be managed by the caller.")
297295
public static @NonNull ClassLoader createSecureClassLoader(ClassLoader base) {
298296
return new SandboxResolvingClassLoader(base);
299297
}

src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SecureGroovyScript.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
package org.jenkinsci.plugins.scriptsecurity.sandbox.groovy;
2626

27-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2827
import groovy.lang.Binding;
2928
import groovy.lang.GroovyClassLoader;
3029
import groovy.lang.GroovyShell;
@@ -326,7 +325,6 @@ public Object evaluate(ClassLoader loader, Binding binding) throws Exception {
326325
* @throws UnapprovedUsageException in case of a non-sandbox issue
327326
* @throws UnapprovedClasspathException in case some unapproved classpath entries were requested
328327
*/
329-
@SuppressFBWarnings(value = "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", justification = "Managed by GroovyShell.")
330328
public Object evaluate(ClassLoader loader, Binding binding, @CheckForNull TaskListener listener) throws Exception {
331329
if (!calledConfiguring) {
332330
throw new IllegalStateException("you need to call configuring or a related method before using GroovyScript");
@@ -457,7 +455,6 @@ private final class CleanClassCollector extends ClassCollector {
457455
return ""; // not intended to be displayed on its own
458456
}
459457

460-
@SuppressFBWarnings(value = "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", justification = "Irrelevant without SecurityManager.")
461458
@RequirePOST
462459
public FormValidation doCheckScript(@QueryParameter String value, @QueryParameter boolean sandbox, @QueryParameter String oldScript) {
463460
FormValidation validationResult = GroovySandbox.checkScriptForCompilationErrors(value,

src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelist.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import edu.umd.cs.findbugs.annotations.NonNull;
4646

4747
import edu.umd.cs.findbugs.annotations.CheckForNull;
48-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4948
import hudson.Extension;
5049
import org.apache.commons.io.input.SequenceReader;
5150
import org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException;
@@ -279,7 +278,6 @@ private static String printArgumentTypes(Class<?>[] parameterTypes) {
279278

280279
private static final Set<String> BLACKLIST;
281280

282-
@SuppressFBWarnings(value = "OS_OPEN_STREAM", justification = "https://sourceforge.net/p/findbugs/bugs/786/")
283281
private static Set<String> loadBlacklist() throws IOException {
284282
try (InputStream is = StaticWhitelist.class.getResourceAsStream("blacklist"); InputStreamReader isr = new InputStreamReader(is, StandardCharsets.US_ASCII); BufferedReader br = new BufferedReader(isr)) {
285283
Set<String> blacklist = new HashSet<>();

0 commit comments

Comments
 (0)