Fix pmd warning

This commit is contained in:
Clément Fournier
2022-05-15 14:31:16 +02:00
parent e759069956
commit 0a72e50109

View File

@ -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) {