Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from oleg-nenashev/JENKINS-45055-findbugs-cleanup
[JENKINS-45055] - FindBugs cleanup in EnvInject Lib
- Loading branch information
Showing
6 changed files
with
70 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
src/main/java/org/jenkinsci/lib/envinject/EnvInjectException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
package org.jenkinsci.lib.envinject; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
/** | ||
* Exception type for the EnvInject logic. | ||
* | ||
* @author Gregory Boissinot | ||
*/ | ||
public class EnvInjectException extends Exception { | ||
|
||
public EnvInjectException(String s) { | ||
public EnvInjectException(@Nonnull String s) { | ||
super(s); | ||
} | ||
|
||
public EnvInjectException(Throwable throwable) { | ||
public EnvInjectException(@Nonnull Throwable throwable) { | ||
super(throwable); | ||
} | ||
|
||
public EnvInjectException(String s, Throwable throwable) { | ||
public EnvInjectException(@Nonnull String s, @Nonnull Throwable throwable) { | ||
super(s, throwable); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters