From ceec868bb02fbd568e62b710c3367e8e14859905 Mon Sep 17 00:00:00 2001 From: Allan Burdajewicz Date: Fri, 7 Jun 2024 07:42:55 +1000 Subject: [PATCH] [JENKINS-73172] Apply spotless --- .../plugins/github_branch_source/GitHubSCMNavigator.java | 3 ++- .../plugins/github_branch_source/GitHubSCMSource.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java index a8e9d6f36..96cd10e63 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java @@ -260,7 +260,8 @@ public GitHubSCMNavigator(String apiUri, String repoOwner, String scanCredential } } - @CheckForNull @Restricted(NoExternalUse.class) + @CheckForNull + @Restricted(NoExternalUse.class) public StandardCredentials getCredentials(@CheckForNull Item context, boolean forceRefresh) { if (credentials == null || forceRefresh) { credentials = Connector.lookupScanCredentials(context, getApiUri(), getCredentialsId(), getRepoOwner()); diff --git a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java index 8a3b2df58..95da6ff4c 100644 --- a/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java +++ b/src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java @@ -379,7 +379,8 @@ public GitHubSCMSource( } } - @CheckForNull @Restricted(NoExternalUse.class) + @CheckForNull + @Restricted(NoExternalUse.class) public StandardCredentials getCredentials(@CheckForNull Item context, boolean forceRefresh) { if (credentials == null || forceRefresh) { credentials = Connector.lookupScanCredentials(context, getApiUri(), getCredentialsId(), getRepoOwner());