Skip to content

Commit 353d7c8

Browse files
Bump org.jenkins-ci.plugins:plugin from 5.8 to 5.9 (jenkinsci#1263)
1 parent efa10dd commit 353d7c8

File tree

4 files changed

+1
-17
lines changed

4 files changed

+1
-17
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>5.8</version>
8+
<version>5.9</version>
99
<relativePath />
1010
</parent>
1111

src/main/java/hudson/plugins/git/Revision.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import static java.util.stream.Collectors.joining;
44

5-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
65
import hudson.Util;
76
import java.io.Serial;
87
import java.util.ArrayList;
@@ -54,7 +53,6 @@ public Revision(ObjectId sha1, Collection<Branch> branches) {
5453
*
5554
* @return a {@link org.eclipse.jgit.lib.ObjectId} object.
5655
*/
57-
@SuppressFBWarnings(value = "NM_CONFUSING", justification = "Published API in GitObject and Revision")
5856
public ObjectId getSha1() {
5957
/* Returns an immutable ObjectId to avoid caller modifying ObjectId using returned ObjectId */
6058
return (sha1 == null) ? null : sha1.toObjectId();
@@ -65,7 +63,6 @@ public ObjectId getSha1() {
6563
*
6664
* @return a {@link java.lang.String} object.
6765
*/
68-
@SuppressFBWarnings(value = "NM_CONFUSING", justification = "Published API in GitObject and Revision")
6966
@Exported(name = "SHA1")
7067
public String getSha1String() {
7168
return sha1 == null ? "" : sha1.name();

src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,10 +2199,6 @@ private String launchCommandWithCredentials(
21992199
}
22002200
}
22012201

2202-
@SuppressFBWarnings(
2203-
value = "DMI_HARDCODED_ABSOLUTE_FILENAME",
2204-
justification =
2205-
"Path operations below intentionally use absolute '/usr/bin/chcon' and '/sys/fs/selinux/enforce' and '/proc/self/attr/current' at this time (as delivered in relevant popular Linux distros)")
22062202
private Boolean fixSELinuxLabel(Path key, String label) {
22072203
// returning false means chcon was tried and failed,
22082204
// maybe caller needs to retry with other logic
@@ -2772,15 +2768,10 @@ private String launchCommandIn(ArgumentListBuilder args, File workDir, EnvVars e
27722768
return launchCommandIn(args, workDir, environment, TIMEOUT);
27732769
}
27742770

2775-
@SuppressFBWarnings(
2776-
value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE",
2777-
justification = "earlier readStderr()/readStdout() call prevents null return")
27782771
private String readProcessIntoString(Proc process, String encoding, boolean useStderr) throws IOException {
27792772
if (useStderr) {
2780-
/* process.getStderr reference is the findbugs warning to be suppressed */
27812773
return IOUtils.toString(process.getStderr(), encoding);
27822774
}
2783-
/* process.getStdout reference is the findbugs warning to be suppressed */
27842775
return IOUtils.toString(process.getStdout(), encoding);
27852776
}
27862777

src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,9 +1612,6 @@ public CloneCommand depth(Integer depth) {
16121612
return this;
16131613
}
16141614

1615-
@SuppressFBWarnings(
1616-
value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE",
1617-
justification = "JGit interaction with spotbugs")
16181615
private RepositoryBuilder newRepositoryBuilder() {
16191616
RepositoryBuilder builder = new RepositoryBuilder();
16201617
builder.setGitDir(new File(workspace, Constants.DOT_GIT)).readEnvironment();
@@ -3141,7 +3138,6 @@ public String getDefaultRemote(String _default_) throws GitException, Interrupte
31413138
/** {@inheritDoc} */
31423139
@Deprecated
31433140
@Override
3144-
@SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "JGit interaction with spotbugs")
31453141
public void setRemoteUrl(String name, String url, String GIT_DIR) throws GitException, InterruptedException {
31463142
try (Repository repo =
31473143
new RepositoryBuilder().setGitDir(new File(GIT_DIR)).build()) {

0 commit comments

Comments
 (0)