Revert "Issue #46: Exception logging has been added."
This reverts commit 2a77329c4f.
This commit is contained in:
parent
947b30dd6e
commit
1891ca16af
|
|
@ -33,8 +33,6 @@ import org.antlr.v4.runtime.Token;
|
|||
import org.antlr.v4.runtime.misc.ParseCancellationException;
|
||||
import org.antlr.v4.runtime.tree.ParseTree;
|
||||
import org.antlr.v4.runtime.tree.TerminalNode;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import com.google.common.base.CaseFormat;
|
||||
import com.google.common.primitives.Ints;
|
||||
|
|
@ -52,7 +50,6 @@ import com.puppycrawl.tools.checkstyle.utils.JavadocUtils;
|
|||
* @author Baratali Izmailov
|
||||
*/
|
||||
public abstract class AbstractJavadocCheck extends Check {
|
||||
|
||||
/**
|
||||
* Error message key for common javadoc errors.
|
||||
*/
|
||||
|
|
@ -89,9 +86,6 @@ public abstract class AbstractJavadocCheck extends Check {
|
|||
}
|
||||
};
|
||||
|
||||
/** Logger. */
|
||||
private static final Log LOG = LogFactory.getLog(AbstractJavadocCheck.class);
|
||||
|
||||
/**
|
||||
* Custom error listener.
|
||||
*/
|
||||
|
|
@ -234,7 +228,6 @@ public abstract class AbstractJavadocCheck extends Check {
|
|||
parseTree = parseJavadocAsParseTree(javadocComment);
|
||||
}
|
||||
catch (ParseCancellationException e) {
|
||||
LOG.error("Syntax error occurs during javadoc parsing.", e);
|
||||
// If syntax error occurs then message is printed by error listener
|
||||
// and parser throws this runtime exception to stop parsing.
|
||||
// Just stop processing current Javadoc comment.
|
||||
|
|
|
|||
Loading…
Reference in New Issue