1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Added a TODO.

This commit is contained in:
Sergey Prigogin 2014-04-22 17:19:16 -07:00
parent 7f914e4a6a
commit 2e36f9b4ca

View file

@ -25,9 +25,7 @@ import org.eclipse.core.runtime.OperationCanceledException;
* implementation for common methods.
*/
public abstract class AbstractChecker implements IChecker {
/**
* @since 2.0
*/
private static final Object[] EMPTY_OBJECT_ARRAY = {};
private ICheckerInvocationContext context;
private IProblemReporter problemReporter;
@ -111,7 +109,7 @@ public abstract class AbstractChecker implements IChecker {
* - line
*/
public void reportProblem(String id, IFile file, int lineNumber) {
getProblemReporter().reportProblem(id, createProblemLocation(file, lineNumber), new Object[] {});
getProblemReporter().reportProblem(id, createProblemLocation(file, lineNumber), EMPTY_OBJECT_ARRAY);
}
/**
@ -204,6 +202,7 @@ public abstract class AbstractChecker implements IChecker {
*/
@Override
public void before(IResource resource) {
// TODO(sprigogin): Use a problem reporter creating non-persistent editor annotations when running in editor.
IProblemReporter reporter = CodanRuntime.getInstance().getProblemReporter();
problemReporter = reporter;
if (reporter instanceof IProblemReporterSessionPersistent) {