From f1739945a8bc8c813ccdd016b24e74d7efb74aff Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Tue, 28 Dec 2021 11:43:35 -0800 Subject: [PATCH] Suppress `SE_INNER_CLASS` SpotBugs violations (#6121) --- core/src/main/java/hudson/util/ProcessTree.java | 2 ++ src/spotbugs/spotbugs-excludes.xml | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/hudson/util/ProcessTree.java b/core/src/main/java/hudson/util/ProcessTree.java index 82c46d329271..3be9c62d57ee 100644 --- a/core/src/main/java/hudson/util/ProcessTree.java +++ b/core/src/main/java/hudson/util/ProcessTree.java @@ -394,6 +394,7 @@ public String call() throws IOException { /** * Serialized form of {@link OSProcess} is the PID and {@link ProcessTree} */ + @SuppressFBWarnings(value = "SE_INNER_CLASS", justification = "Serializing the outer instance is intended") private final class SerializedProcess implements Serializable { private final int pid; private static final long serialVersionUID = 1L; @@ -2177,6 +2178,7 @@ Object writeReplace() { private static final long serialVersionUID = 1L; + @SuppressFBWarnings(value = "SE_INNER_CLASS", justification = "Serializing the outer instance is intended") private class RemoteProcess extends OSProcess implements Serializable { private final IOSProcess proxy; diff --git a/src/spotbugs/spotbugs-excludes.xml b/src/spotbugs/spotbugs-excludes.xml index 63c6295337f6..18412017dc9e 100644 --- a/src/spotbugs/spotbugs-excludes.xml +++ b/src/spotbugs/spotbugs-excludes.xml @@ -383,13 +383,6 @@ - - - - - - -