From 75603abbd56f55f46ea3dceda9ef1cdb719f935a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Dec 2021 08:33:19 -0800 Subject: [PATCH 01/17] Bump bridge-method-annotation from 1.21 to 1.22 (#5993) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- core/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pom.xml b/core/pom.xml index 494997f2fa8f..2126bb129250 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -178,7 +178,7 @@ THE SOFTWARE. com.infradna.tool bridge-method-annotation - 1.21 + 1.22 From 816bb676b2a85fb77defbf4f65848615ae8ecd63 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Dec 2021 08:33:39 -0800 Subject: [PATCH 02/17] Bump bridge-method-injector from 1.21 to 1.22 (#5994) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 894a0daca8eb..a4cd5a29ae39 100644 --- a/pom.xml +++ b/pom.xml @@ -351,7 +351,7 @@ THE SOFTWARE. com.infradna.tool bridge-method-injector - 1.21 + 1.22 org.codehaus.mojo From e7f9774c60bbcab61856a5382b650920d4be3996 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Thu, 2 Dec 2021 08:33:49 -0800 Subject: [PATCH 03/17] Prevent the expansion of Guava usages (#5996) --- core/src/main/java/hudson/util/Iterators.java | 4 ++-- pom.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/util/Iterators.java b/core/src/main/java/hudson/util/Iterators.java index 384ff29ed56b..def851e081ef 100644 --- a/core/src/main/java/hudson/util/Iterators.java +++ b/core/src/main/java/hudson/util/Iterators.java @@ -23,7 +23,6 @@ */ package hudson.util; -import com.google.common.base.Predicates; import com.google.common.collect.ImmutableList; import edu.umd.cs.findbugs.annotations.NonNull; import java.util.AbstractList; @@ -33,6 +32,7 @@ import java.util.List; import java.util.ListIterator; import java.util.NoSuchElementException; +import java.util.Objects; import java.util.Set; import org.kohsuke.accmod.Restricted; import org.kohsuke.accmod.restrictions.NoExternalUse; @@ -322,7 +322,7 @@ public void remove() { * Wraps another iterator and throws away nulls. */ public static Iterator removeNull(final Iterator itr) { - return com.google.common.collect.Iterators.filter(itr, Predicates.notNull()); + return com.google.common.collect.Iterators.filter(itr, Objects::nonNull); } /** diff --git a/pom.xml b/pom.xml index a4cd5a29ae39..67ce28ffbcd7 100644 --- a/pom.xml +++ b/pom.xml @@ -474,6 +474,8 @@ THE SOFTWARE. + + diff --git a/pom.xml b/pom.xml index 17379dc142cd..2b6f3aa87abd 100644 --- a/pom.xml +++ b/pom.xml @@ -99,6 +99,7 @@ THE SOFTWARE. ${project.basedir}/../src/spotbugs/spotbugs-excludes.xml 1.25 + 1.22 5.8.2 2.17.5 @@ -351,7 +352,7 @@ THE SOFTWARE. com.infradna.tool bridge-method-injector - 1.22 + ${bridge-method-injector.version} org.codehaus.mojo From ac6956c1773f2b2ceec8c0aabb1d4c7bc8d48d3d Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Fri, 3 Dec 2021 17:16:43 +0900 Subject: [PATCH 06/17] Fix typo in default-whitelist.txt (#6003) --- .../resources/jenkins/security/stapler/default-whitelist.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt b/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt index c9fd1dfcba8d..6ac3b1bb09dc 100644 --- a/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt +++ b/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt @@ -131,7 +131,7 @@ method hudson.plugins.build_publisher.BuildPublisher$BuildPublisherDescriptor do ############################################### -# Changes since last successfull build Plugin # (sic) +# Changes since last successful build Plugin # (sic) ############################################### # Only has an index.jelly view, so needs to be explicit class com.cloudbees.jenkins.plugins.changelog.Changes From a0b929070e6d20833fc6e5fc2e9cc4a67df37b5a Mon Sep 17 00:00:00 2001 From: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> Date: Fri, 3 Dec 2021 17:36:08 +0100 Subject: [PATCH 07/17] Amend #6003 (#6005) --- .../resources/jenkins/security/stapler/default-whitelist.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt b/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt index 6ac3b1bb09dc..b2a39e2ed602 100644 --- a/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt +++ b/core/src/main/resources/jenkins/security/stapler/default-whitelist.txt @@ -131,7 +131,7 @@ method hudson.plugins.build_publisher.BuildPublisher$BuildPublisherDescriptor do ############################################### -# Changes since last successful build Plugin # (sic) +# Changes since last successful build Plugin # ############################################### # Only has an index.jelly view, so needs to be explicit class com.cloudbees.jenkins.plugins.changelog.Changes From af4e20e2f3b261e2d72ff77e18c82290b39f0350 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:24:58 -0800 Subject: [PATCH 08/17] Bump jnr-posix from 3.1.12 to 3.1.13 (#5998) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/pom.xml b/bom/pom.xml index cbf02bc59b11..059056f4a372 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -191,7 +191,7 @@ THE SOFTWARE. com.github.jnr jnr-posix - 3.1.12 + 3.1.13 org.kohsuke From cd92d7f88fdcf7c83d9103ffa097b53298d0e532 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Fri, 3 Dec 2021 12:25:01 -0800 Subject: [PATCH 09/17] Fix `PublicConstructorForAbstractClass` Error Prone violations (#5951) --- core/src/main/java/hudson/FilePath.java | 2 +- core/src/main/java/hudson/Launcher.java | 2 +- core/src/main/java/hudson/PluginManager.java | 2 +- .../java/hudson/console/ConsoleAnnotationDescriptor.java | 4 ++-- core/src/main/java/hudson/model/Computer.java | 2 +- .../src/main/java/hudson/model/FullDuplexHttpChannel.java | 2 +- core/src/main/java/hudson/model/Label.java | 2 +- core/src/main/java/hudson/model/ParameterDefinition.java | 4 ++-- core/src/main/java/hudson/model/Project.java | 2 +- core/src/main/java/hudson/model/Slave.java | 8 ++++---- .../main/java/hudson/model/labels/LabelExpression.java | 2 +- .../hudson/node_monitors/AbstractDiskSpaceMonitor.java | 4 ++-- core/src/main/java/hudson/slaves/AbstractCloudSlave.java | 6 +++--- .../main/java/hudson/slaves/ComputerLauncherFilter.java | 2 +- core/src/main/java/hudson/tasks/CommandInterpreter.java | 2 +- .../main/java/hudson/tools/AbstractCommandInstaller.java | 2 +- .../main/java/hudson/tools/DownloadFromUrlInstaller.java | 2 +- core/src/main/java/hudson/tools/ToolInstallation.java | 6 +++--- core/src/main/java/hudson/util/FormFieldValidator.java | 2 +- core/src/main/java/hudson/util/XStream2.java | 2 +- .../main/java/jenkins/security/RSAConfidentialKey.java | 4 ++-- .../java/jenkins/util/InterceptingExecutorService.java | 2 +- .../main/java/jenkins/util/MarkFindingOutputStream.java | 2 +- .../jenkins/util/groovy/AbstractGroovyViewModule.java | 2 +- .../java/org/acegisecurity/AcegiSecurityException.java | 4 ++-- .../java/org/acegisecurity/AuthenticationException.java | 6 +++--- .../providers/AbstractAuthenticationToken.java | 4 ++-- 27 files changed, 42 insertions(+), 42 deletions(-) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index ef4867ea0a9b..08ace200fe30 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -1197,7 +1197,7 @@ public abstract static class AbstractInterceptorCallableWrapper implements De private final DelegatingCallable callable; - public AbstractInterceptorCallableWrapper(DelegatingCallable callable) { + protected AbstractInterceptorCallableWrapper(DelegatingCallable callable) { this.callable = callable; } diff --git a/core/src/main/java/hudson/Launcher.java b/core/src/main/java/hudson/Launcher.java index b14cee5418b3..85fc42ea5b9e 100644 --- a/core/src/main/java/hudson/Launcher.java +++ b/core/src/main/java/hudson/Launcher.java @@ -97,7 +97,7 @@ public abstract class Launcher { @Restricted(Beta.class) protected EnvVarsFilterRuleWrapper envVarsFilterRuleWrapper; - public Launcher(@NonNull TaskListener listener, @CheckForNull VirtualChannel channel) { + protected Launcher(@NonNull TaskListener listener, @CheckForNull VirtualChannel channel) { this.listener = listener; this.channel = channel; } diff --git a/core/src/main/java/hudson/PluginManager.java b/core/src/main/java/hudson/PluginManager.java index 957f161895d1..e45bc76ba1bd 100644 --- a/core/src/main/java/hudson/PluginManager.java +++ b/core/src/main/java/hudson/PluginManager.java @@ -351,7 +351,7 @@ PluginManager doCreate(@NonNull Class klass, */ private final PluginStrategy strategy; - public PluginManager(ServletContext context, File rootDir) { + protected PluginManager(ServletContext context, File rootDir) { this.context = context; this.rootDir = rootDir; diff --git a/core/src/main/java/hudson/console/ConsoleAnnotationDescriptor.java b/core/src/main/java/hudson/console/ConsoleAnnotationDescriptor.java index 1cfbbbfd4f81..3f9a17d14317 100644 --- a/core/src/main/java/hudson/console/ConsoleAnnotationDescriptor.java +++ b/core/src/main/java/hudson/console/ConsoleAnnotationDescriptor.java @@ -42,11 +42,11 @@ * @since 1.349 */ public abstract class ConsoleAnnotationDescriptor extends Descriptor> implements ExtensionPoint { - public ConsoleAnnotationDescriptor(Class> clazz) { + protected ConsoleAnnotationDescriptor(Class> clazz) { super(clazz); } - public ConsoleAnnotationDescriptor() { + protected ConsoleAnnotationDescriptor() { } /** diff --git a/core/src/main/java/hudson/model/Computer.java b/core/src/main/java/hudson/model/Computer.java index efd82044bd71..c6586cd354eb 100644 --- a/core/src/main/java/hudson/model/Computer.java +++ b/core/src/main/java/hudson/model/Computer.java @@ -251,7 +251,7 @@ public List getTerminatedBy() { return new ArrayList<>(terminatedBy); } - public Computer(Node node) { + protected Computer(Node node) { setNode(node); } diff --git a/core/src/main/java/hudson/model/FullDuplexHttpChannel.java b/core/src/main/java/hudson/model/FullDuplexHttpChannel.java index f7da784a9351..6251bddec842 100644 --- a/core/src/main/java/hudson/model/FullDuplexHttpChannel.java +++ b/core/src/main/java/hudson/model/FullDuplexHttpChannel.java @@ -44,7 +44,7 @@ public abstract class FullDuplexHttpChannel extends FullDuplexHttpService { private Channel channel; private final boolean restricted; - public FullDuplexHttpChannel(UUID uuid, boolean restricted) throws IOException { + protected FullDuplexHttpChannel(UUID uuid, boolean restricted) throws IOException { super(uuid); this.restricted = restricted; } diff --git a/core/src/main/java/hudson/model/Label.java b/core/src/main/java/hudson/model/Label.java index 367a25f36068..0e38b876f8a7 100644 --- a/core/src/main/java/hudson/model/Label.java +++ b/core/src/main/java/hudson/model/Label.java @@ -97,7 +97,7 @@ public abstract class Label extends Actionable implements Comparable