From 619885e169d3705f5058f6101366780161d2ad9c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:20:39 -0800 Subject: [PATCH] Chore(deps): Bump com.diffplug.spotless:spotless-maven-plugin from 2.27.2 to 2.43.0 (#1785) * Chore(deps): Bump com.diffplug.spotless:spotless-maven-plugin Bumps [com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless) from 2.27.2 to 2.43.0. - [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md) - [Commits](https://github.com/diffplug/spotless/compare/maven/2.27.2...lib/2.43.0) --- updated-dependencies: - dependency-name: com.diffplug.spotless:spotless-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Formatting updates --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Liam Newman --- pom.xml | 2 +- .../java/org/kohsuke/github/GHRepository.java | 2 +- .../authorization/AuthorizationProvider.java | 8 +++--- .../kohsuke/github/GHCheckRunBuilderTest.java | 2 +- .../org/kohsuke/github/GHWorkflowRunTest.java | 28 +++++++++---------- .../org/kohsuke/github/GHWorkflowTest.java | 6 ++-- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/pom.xml b/pom.xml index 416db456ee..24afae90a7 100644 --- a/pom.xml +++ b/pom.xml @@ -379,7 +379,7 @@ com.diffplug.spotless spotless-maven-plugin - 2.27.2 + 2.43.0 spotless-check diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 6cc2eb7ad6..6133629d6b 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1508,7 +1508,7 @@ public void delete() throws IOException { } catch (FileNotFoundException x) { throw (FileNotFoundException) new FileNotFoundException("Failed to delete " + getOwnerName() + "/" + name + "; might not exist, or you might need the delete_repo scope in your token: http://stackoverflow.com/a/19327004/12916") - .initCause(x); + .initCause(x); } } diff --git a/src/main/java/org/kohsuke/github/authorization/AuthorizationProvider.java b/src/main/java/org/kohsuke/github/authorization/AuthorizationProvider.java index bc6ddc1931..76d7cde8fb 100644 --- a/src/main/java/org/kohsuke/github/authorization/AuthorizationProvider.java +++ b/src/main/java/org/kohsuke/github/authorization/AuthorizationProvider.java @@ -23,10 +23,10 @@ public interface AuthorizationProvider { * *
      * {@code
-     *  @Override
-     *  public String getEncodedAuthorization() {
-     *  return "Bearer myBearerToken";
-     *  }
+     * @Override
+     * public String getEncodedAuthorization() {
+     *     return "Bearer myBearerToken";
+     * }
      * }
      * 
* diff --git a/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java b/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java index a2594d307d..5b48eabd2d 100644 --- a/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java +++ b/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java @@ -74,7 +74,7 @@ public void createCheckRun() throws Exception { "hello to you too").withTitle("Look here")) .add(new GHCheckRunBuilder.Image("Unikitty", "https://i.pinimg.com/474x/9e/65/c0/9e65c0972294f1e10f648c9780a79fab.jpg") - .withCaption("Princess Unikitty"))) + .withCaption("Princess Unikitty"))) .add(new GHCheckRunBuilder.Action("Help", "what I need help with", "doit")) .create(); assertThat(checkRun.getStatus(), equalTo(Status.COMPLETED)); diff --git a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java index f4b680b5ef..2c2fc1fde1 100644 --- a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java +++ b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java @@ -84,8 +84,8 @@ public void testManualRunAndBasicInformation() throws IOException { GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME, MAIN_BRANCH, Status.COMPLETED, - latestPreexistingWorkflowRunId).orElseThrow( - () -> new IllegalStateException("We must have a valid workflow run starting from here")); + latestPreexistingWorkflowRunId) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); assertThat(workflowRun.getWorkflowId(), equalTo(workflow.getId())); assertThat(workflowRun.getId(), notNullValue()); @@ -137,8 +137,8 @@ public void testCancelAndRerun() throws IOException { GHWorkflowRun workflowRun = getWorkflowRun(SLOW_WORKFLOW_NAME, MAIN_BRANCH, Status.IN_PROGRESS, - latestPreexistingWorkflowRunId).orElseThrow( - () -> new IllegalStateException("We must have a valid workflow run starting from here")); + latestPreexistingWorkflowRunId) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); assertThat(workflowRun.getId(), notNullValue()); @@ -186,8 +186,8 @@ public void testDelete() throws IOException { GHWorkflowRun workflowRunToDelete = getWorkflowRun(FAST_WORKFLOW_NAME, MAIN_BRANCH, Status.COMPLETED, - latestPreexistingWorkflowRunId).orElseThrow( - () -> new IllegalStateException("We must have a valid workflow run starting from here")); + latestPreexistingWorkflowRunId) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); assertThat(workflowRunToDelete.getId(), notNullValue()); @@ -224,8 +224,8 @@ public void testSearchOnBranch() throws IOException { GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME, SECOND_BRANCH, Status.COMPLETED, - latestPreexistingWorkflowRunId).orElseThrow( - () -> new IllegalStateException("We must have a valid workflow run starting from here")); + latestPreexistingWorkflowRunId) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); assertThat(workflowRun.getWorkflowId(), equalTo(workflow.getId())); assertThat(workflowRun.getHeadBranch(), equalTo(SECOND_BRANCH)); @@ -326,8 +326,8 @@ public void testLogs() throws IOException { GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME, MAIN_BRANCH, Status.COMPLETED, - latestPreexistingWorkflowRunId).orElseThrow( - () -> new IllegalStateException("We must have a valid workflow run starting from here")); + latestPreexistingWorkflowRunId) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); List logsArchiveEntries = new ArrayList<>(); String fullLogContent = workflowRun @@ -370,8 +370,8 @@ public void testArtifacts() throws IOException { GHWorkflowRun workflowRun = getWorkflowRun(ARTIFACTS_WORKFLOW_NAME, MAIN_BRANCH, Status.COMPLETED, - latestPreexistingWorkflowRunId).orElseThrow( - () -> new IllegalStateException("We must have a valid workflow run starting from here")); + latestPreexistingWorkflowRunId) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); List artifacts = new ArrayList<>(workflowRun.listArtifacts().toList()); artifacts.sort((a1, a2) -> a1.getName().compareTo(a2.getName())); @@ -456,8 +456,8 @@ public void testJobs() throws IOException { GHWorkflowRun workflowRun = getWorkflowRun(MULTI_JOBS_WORKFLOW_NAME, MAIN_BRANCH, Status.COMPLETED, - latestPreexistingWorkflowRunId).orElseThrow( - () -> new IllegalStateException("We must have a valid workflow run starting from here")); + latestPreexistingWorkflowRunId) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); List jobs = workflowRun.listJobs() .toList() diff --git a/src/test/java/org/kohsuke/github/GHWorkflowTest.java b/src/test/java/org/kohsuke/github/GHWorkflowTest.java index cfcca971f3..63b2aec5c8 100644 --- a/src/test/java/org/kohsuke/github/GHWorkflowTest.java +++ b/src/test/java/org/kohsuke/github/GHWorkflowTest.java @@ -121,9 +121,9 @@ public void testDispatch() throws IOException { workflow.dispatch("main", Collections.singletonMap("parameter", "value")); verify(postRequestedFor( urlPathEqualTo("/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/dispatches")) - .withRequestBody(containing("inputs")) - .withRequestBody(containing("parameter")) - .withRequestBody(containing("value"))); + .withRequestBody(containing("inputs")) + .withRequestBody(containing("parameter")) + .withRequestBody(containing("value"))); } /**