Skip to content

Commit a1acabd

Browse files
authored
Merge pull request #1856 from hub4j/dependabot/maven/spotbugs.version-4.8.6
Chore(deps): Bump spotbugs.version from 4.7.3 to 4.8.6
2 parents 379996d + 499f047 commit a1acabd

21 files changed

+61
-13
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
<properties>
3535
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36-
<spotbugs-maven-plugin.version>4.8.1.0</spotbugs-maven-plugin.version>
37-
<spotbugs.version>4.7.3</spotbugs.version>
36+
<spotbugs-maven-plugin.version>4.8.5.0</spotbugs-maven-plugin.version>
37+
<spotbugs.version>4.8.6</spotbugs.version>
3838
<spotbugs-maven-plugin.failOnError>true</spotbugs-maven-plugin.failOnError>
3939
<hamcrest.version>2.2</hamcrest.version>
4040
<okhttp3.version>4.9.2</okhttp3.version>

src/main/java/org/kohsuke/github/AbstractBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
35
import java.io.IOException;
46

57
import javax.annotation.CheckForNull;
@@ -75,6 +77,7 @@ abstract class AbstractBuilder<R, S> extends GitHubInteractiveObject {
7577
* @param baseInstance
7678
* optional instance on which to base this builder.
7779
*/
80+
@SuppressFBWarnings(value = { "CT_CONSTRUCTOR_THROW" }, justification = "argument validation, internal class")
7881
protected AbstractBuilder(@Nonnull Class<R> finalReturnType,
7982
@Nonnull Class<S> intermediateReturnType,
8083
@Nonnull GitHub root,

src/main/java/org/kohsuke/github/GHArtifactsPage.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
35
// TODO: Auto-generated Javadoc
46
/**
57
* Represents the one page of artifacts result when listing artifacts.
68
*/
9+
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
10+
justification = "JSON API")
711
class GHArtifactsPage {
812
private int total_count;
913
private GHArtifact[] artifacts;

src/main/java/org/kohsuke/github/GHCheckRunsPage.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
35
// TODO: Auto-generated Javadoc
46
/**
57
* Represents the one page of check-runs result when listing check-runs.
68
*/
9+
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
10+
justification = "JSON API")
711
class GHCheckRunsPage {
812
private int total_count;
913
private GHCheckRun[] check_runs;

src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
34
import org.apache.commons.lang3.StringUtils;
45
import org.kohsuke.github.internal.Previews;
56

@@ -249,6 +250,9 @@ public enum Sort {
249250
COMMITTER_DATE
250251
}
251252

253+
@SuppressFBWarnings(
254+
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
255+
justification = "JSON API")
252256
private static class CommitSearchResult extends SearchResult<GHCommit> {
253257
private GHCommit[] items;
254258

src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
35
// TODO: Auto-generated Javadoc
46
/**
57
* Search issues.
@@ -117,6 +119,9 @@ public enum Sort {
117119
UPDATED
118120
}
119121

122+
@SuppressFBWarnings(
123+
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
124+
justification = "JSON API")
120125
private static class IssueSearchResult extends SearchResult<GHIssue> {
121126
private GHIssue[] items;
122127

src/main/java/org/kohsuke/github/GHMembership.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* @author Kohsuke Kawaguchi
1414
* @see GHMyself#listOrgMemberships() GHMyself#listOrgMemberships()
1515
*/
16+
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
17+
justification = "JSON API")
1618
public class GHMembership extends GitHubInteractiveObject {
1719

1820
/** The url. */

src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
35
// TODO: Auto-generated Javadoc
46
/**
57
* Search repositories.
@@ -328,6 +330,9 @@ public String toString() {
328330
}
329331
}
330332

333+
@SuppressFBWarnings(
334+
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
335+
justification = "JSON API")
331336
private static class RepositorySearchResult extends SearchResult<GHRepository> {
332337
private GHRepository[] items;
333338

src/main/java/org/kohsuke/github/GHTree.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
35
import java.net.URL;
46
import java.util.Arrays;
57
import java.util.Collections;
@@ -14,6 +16,8 @@
1416
* @see GHRepository#getTree(String) GHRepository#getTree(String)
1517
* @see GHTreeEntry#asTree() GHTreeEntry#asTree()
1618
*/
19+
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
20+
justification = "JSON API")
1721
public class GHTree {
1822

1923
/** The repo. */

src/main/java/org/kohsuke/github/GHWorkflowJobsPage.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
package org.kohsuke.github;
22

3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
35
// TODO: Auto-generated Javadoc
46
/**
57
* Represents the one page of jobs result when listing jobs from a workflow run.
68
*/
9+
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
10+
justification = "JSON API")
711
class GHWorkflowJobsPage {
812
private int total_count;
913
private GHWorkflowJob[] jobs;

0 commit comments

Comments
 (0)