From: Robert Varga Date: Mon, 4 Jan 2016 15:51:46 +0000 (+0100) Subject: Exceptions should have serialVersionUid X-Git-Tag: release/beryllium~43 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=yangtools.git;a=commitdiff_plain;h=34f9631ab5302045214340d9ff91a9e3a16beca2 Exceptions should have serialVersionUid Add missing field to fix an eclipse warning. Change-Id: Ice3d94150c29d0c69a4a6794576f5754191e184d Signed-off-by: Robert Varga --- diff --git a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java index b4d258abd6..c8678eca20 100644 --- a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java +++ b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java @@ -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); } } diff --git a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/MissingSubstatementException.java b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/MissingSubstatementException.java index a2c45721f9..44978aa56c 100644 --- a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/MissingSubstatementException.java +++ b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/MissingSubstatementException.java @@ -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); } }