Suppress ScheduleException warning 51/85051/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Oct 2019 08:27:16 +0000 (10:27 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Oct 2019 08:27:16 +0000 (10:27 +0200)
The Failure object is not marked as serializable. Suppress the
spotbugs warning and mark a fixme to clean up serialization.

Change-Id: I56c84a06060183e9e5851e3a21d85529f5b9551b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
programming/spi/src/main/java/org/opendaylight/bgpcep/programming/spi/SchedulerException.java

index a139a1ed503f6c6c1c85d28ec45676f60b4cd627..ed986b26a59596ee7e4a634a25ba724463142937 100644 (file)
@@ -7,11 +7,14 @@
  */
 package org.opendaylight.bgpcep.programming.spi;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.programming.rev150720.submit.instruction.output.result.failure._case.Failure;
 
 public class SchedulerException extends Exception {
     private static final long serialVersionUID = 1L;
 
+    @SuppressFBWarnings("SE_BAD_FIELD")
+    // FIXME: use explicit serialization here
     private final Failure failure;
 
     public SchedulerException(final String message, final Failure failure) {