Remove info level of SemanticErrorReporter
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user