Further yang-parser-impl checkstyle fixes
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / rfc6020 / repo / YangErrorListener.java
index 91303dd76b8d2271c5b6c5a538ab7bc234f87e38..bedf967996cf8fc9f40864e57ad91500c4d8716b 100644 (file)
@@ -22,6 +22,7 @@ public final class YangErrorListener extends BaseErrorListener {
     private final List<YangSyntaxErrorException> exceptions = new ArrayList<>();
 
     @Override
+    @SuppressWarnings("checkstyle:parameterName")
     public void syntaxError(final Recognizer<?, ?> recognizer, final Object offendingSymbol, final int line,
             final int charPositionInLine, final String msg, final RecognitionException e) {
         LOG.debug("Syntax error at {}:{}: {}", line, charPositionInLine, msg, e);
@@ -30,6 +31,7 @@ public final class YangErrorListener extends BaseErrorListener {
         exceptions.add(new YangSyntaxErrorException(module, line, charPositionInLine, msg, e));
     }
 
+    @SuppressWarnings("checkstyle:illegalCatch")
     private static String getModuleName(final Recognizer<?, ?> recognizer) {
         if (!(recognizer instanceof Parser)) {
             return null;