From 0a72e501094173dbe41ba05dde1b2338551e8cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Sun, 15 May 2022 14:31:16 +0200 Subject: [PATCH] Fix pmd warning --- .../net/sourceforge/pmd/lang/ast/SemanticErrorReporter.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/SemanticErrorReporter.java b/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/SemanticErrorReporter.java index 88183eb65d..a3814820eb 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/SemanticErrorReporter.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/SemanticErrorReporter.java @@ -88,7 +88,6 @@ public interface SemanticErrorReporter { */ static SemanticErrorReporter reportToLogger(MessageReporter reporter) { return new SemanticErrorReporter() { - private boolean hasError = false; private SemanticException exception = null; @@ -114,7 +113,6 @@ public interface SemanticErrorReporter { @Override public SemanticException error(Node location, String message, Object... args) { - hasError = true; String fullMessage = logMessage(Level.ERROR, location, message, args); SemanticException ex = new SemanticException(fullMessage); if (this.exception == null) {