Fix checkstyle in yang-parser-spi
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / InvalidSubstatementException.java
index 3412ee7175233ee63f2695b5d0ba1869702122ef..99c9c19754f4208de099b209d40c0a3f60ecb46d 100644 (file)
@@ -12,20 +12,21 @@ 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
+ * Thrown when there was invalid element in YANG file.
  */
 public class InvalidSubstatementException extends SourceException {
     private static final long serialVersionUID = 1L;
 
+    public InvalidSubstatementException(@Nonnull final String message,
+            @Nonnull final StatementSourceReference source) {
+        super(message, source);
+    }
+
     public InvalidSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source,
             final Throwable cause) {
         super(message, source, cause);
     }
 
-    public InvalidSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source) {
-        super(message, source);
-    }
-
     public InvalidSubstatementException(@Nonnull final StatementSourceReference source, @Nonnull final String format,
             final Object... args) {
         this(String.format(format, args), source);