Fix some SpotBugs violations (#6023)

Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
This commit is contained in:
Basil CrowandMark Waite authored and GitHub committed 2021-12-10 09:52:29 -08:00
1 parent bccbc865e4
commit b57ede4279
9 files changed
+49 -39

No files matched your search

+3
View File
@@ -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");
/**