Exceptions should have serialVersionUid 84/32084/2
authorRobert Varga <rovarga@cisco.com>
Mon, 4 Jan 2016 15:51:46 +0000 (16:51 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 4 Jan 2016 17:20:49 +0000 (18:20 +0100)
Add missing field to fix an eclipse warning.

Change-Id: Ice3d94150c29d0c69a4a6794576f5754191e184d
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/MissingSubstatementException.java

index b4d258abd616beecb328b2de5bb40b7643c05800..c8678eca20e7e23489b846f8109225fff0bd2416 100644 (file)
@@ -12,16 +12,16 @@ import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 import org.opendaylight.yangtools.yang.parser.spi.source.StatementSourceReference;
 
 /**
- *
  * Thrown when there was Invalid element in yang file
- *
  */
 public class InvalidSubstatementException extends SourceException {
-    public InvalidSubstatementException(@Nonnull String message, @Nonnull StatementSourceReference source, Throwable cause) {
+    private static final long serialVersionUID = 1L;
+
+    public InvalidSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source, final Throwable cause) {
         super(message, source, cause);
     }
 
-    public InvalidSubstatementException(@Nonnull String message, @Nonnull StatementSourceReference source) {
+    public InvalidSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source) {
         super(message, source);
     }
 }
index a2c45721f9d82c24351a27ab5d6aee8f1235dabe..44978aa56cf0dc2cd1be2c92dee9b5aeefe323ff 100644 (file)
@@ -12,16 +12,16 @@ import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 import org.opendaylight.yangtools.yang.parser.spi.source.StatementSourceReference;
 
 /**
- *
  * Thrown when there was Missing element in yang file
- *
  */
 public class MissingSubstatementException extends SourceException {
-    public MissingSubstatementException(@Nonnull String message, @Nonnull StatementSourceReference source) {
+    private static final long serialVersionUID = 1L;
+
+    public MissingSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source) {
         super(message, source);
     }
 
-    public MissingSubstatementException(@Nonnull String message, @Nonnull StatementSourceReference source, Throwable cause) {
+    public MissingSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source, final Throwable cause) {
         super(message, source, cause);
     }
 }