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 @@ - - - - - - -