From 9b8323c5e9163b272e63e28d8fdcd29b79798eef Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Sat, 23 Dec 2023 09:38:22 +0100 Subject: [PATCH] Fix CheckStyle warnings. --- pom.xml | 2 +- src/main/java/io/jenkins/plugins/util/JenkinsFacade.java | 1 - src/test/java/io/jenkins/plugins/util/AgentFileVisitorTest.java | 1 - .../java/io/jenkins/plugins/util/BuildResultNavigatorTest.java | 2 -- .../java/io/jenkins/plugins/util/EnvironmentResolverTest.java | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 3187f63e..25e4e1a2 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ 1.4.0 0.8.2 1.19.3 - 3.30.0 + 3.31.0 diff --git a/src/main/java/io/jenkins/plugins/util/JenkinsFacade.java b/src/main/java/io/jenkins/plugins/util/JenkinsFacade.java index 05e9a5bc..bb64b407 100644 --- a/src/main/java/io/jenkins/plugins/util/JenkinsFacade.java +++ b/src/main/java/io/jenkins/plugins/util/JenkinsFacade.java @@ -285,7 +285,6 @@ private String getContextPath() { */ public String getAbsoluteUrl(final String... urlElements) { return getAbsoluteUrl(StringUtils.join(urlElements, "/")); - } private String getAbsoluteUrl(final String url) { diff --git a/src/test/java/io/jenkins/plugins/util/AgentFileVisitorTest.java b/src/test/java/io/jenkins/plugins/util/AgentFileVisitorTest.java index 9b142753..1293ea12 100644 --- a/src/test/java/io/jenkins/plugins/util/AgentFileVisitorTest.java +++ b/src/test/java/io/jenkins/plugins/util/AgentFileVisitorTest.java @@ -207,7 +207,6 @@ public int hashCode() { } private static class EmptyScanner extends AgentFileVisitor { - private static final long serialVersionUID = 3700448215163706213L; @VisibleForTesting diff --git a/src/test/java/io/jenkins/plugins/util/BuildResultNavigatorTest.java b/src/test/java/io/jenkins/plugins/util/BuildResultNavigatorTest.java index 838391e2..180604c2 100644 --- a/src/test/java/io/jenkins/plugins/util/BuildResultNavigatorTest.java +++ b/src/test/java/io/jenkins/plugins/util/BuildResultNavigatorTest.java @@ -39,7 +39,6 @@ void shouldNavigateToSelectedBuild() { "spotbugs", "last-build")) .isEmpty(); - } @Test @@ -108,5 +107,4 @@ void shouldNotFindBuildIfThereIsNoLastBuild() { "wrong-selection")) .isEmpty(); } - } diff --git a/src/test/java/io/jenkins/plugins/util/EnvironmentResolverTest.java b/src/test/java/io/jenkins/plugins/util/EnvironmentResolverTest.java index bbafaafd..da4647d1 100644 --- a/src/test/java/io/jenkins/plugins/util/EnvironmentResolverTest.java +++ b/src/test/java/io/jenkins/plugins/util/EnvironmentResolverTest.java @@ -178,5 +178,4 @@ private void checkLoopWithNumberOfRuns(final int resolveVariablesDepth, final En assertThat(expanded).isEqualTo(expected); } - }