mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Fix some SpotBugs violations (#6023)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
This commit is contained in:
1 parent
bccbc865e4
commit
b57ede4279
9 files changed
+49
-39
No files matched your search
@@ -24,6 +24,7 @@
|
||||
package hudson;
|
||||
|
||||
import com.thoughtworks.xstream.core.util.Base64Encoder;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import hudson.util.DualOutputStream;
|
||||
import hudson.util.EncodingStream;
|
||||
import hudson.util.IOUtils;
|
||||
@@ -216,12 +217,14 @@ public class Main {
|
||||
/**
|
||||
* Set to true if we are running unit tests.
|
||||
*/
|
||||
@SuppressFBWarnings(value = "MS_SHOULD_BE_FINAL", justification = "for debugging")
|
||||
public static boolean isUnitTest = false;
|
||||
|
||||
/**
|
||||
* Set to true if we are running inside {@code mvn jetty:run}.
|
||||
* This is also set if running inside {@code mvn hpi:run} since plugins parent POM 2.30.
|
||||
*/
|
||||
@SuppressFBWarnings(value = "MS_SHOULD_BE_FINAL", justification = "for debugging")
|
||||
public static boolean isDevelopmentMode = SystemProperties.getBoolean(Main.class.getName()+".development");
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user