Remove info level of SemanticErrorReporter

This commit is contained in:
Clément Fournier
2022-05-15 14:15:06 +02:00
parent 02571c6c04
commit bd86027d90
2 changed files with 1 additions and 18 deletions

View File

@ -19,18 +19,6 @@ public interface SemanticErrorReporter {
// TODO use resource bundle keys instead of string messages.
/**
* Report an informational message at the given location.
*
* @param location Location where the message should be reported
* @param message Message (rendered using a {@link MessageFormat})
* @param formatArgs Format arguments
*/
default void info(Node location, String message, Object... formatArgs) {
// noop
}
/**
* Report a warning at the given location. Warnings do not abort
* the analysis. They are usually recoverable errors. They are used
@ -108,11 +96,6 @@ public interface SemanticErrorReporter {
return fullMessage;
}
@Override
public void info(Node location, String message, Object... formatArgs) {
logMessage(Level.INFO, location, message, formatArgs);
}
@Override
public void warning(Node location, String message, Object... args) {
logMessage(Level.WARN, location, message, args);

View File

@ -149,7 +149,7 @@ abstract class PmdRunnable implements Runnable {
RootNode rootNode = parse(parser, task);
if (reporter.hasError()) {
reporter.info(rootNode, "Errors occurred in file, skipping rule analysis");
configuration.getReporter().info("Errors occurred in file, skipping rule analysis: {0}", filename);
return;
}