Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2014-04-22 20:19:16 -0400
committerSergey Prigogin2014-04-22 20:19:16 -0400
commit2e36f9b4caea938449c777d397c605c0ab8cbb6b (patch)
tree87e5bdda1c4c4dd7163d2c4e4ec3203f17854ede /codan/org.eclipse.cdt.codan.core
parent7f914e4a6a1edce1344dccb32621889782f01939 (diff)
downloadorg.eclipse.cdt-2e36f9b4caea938449c777d397c605c0ab8cbb6b.tar.gz
org.eclipse.cdt-2e36f9b4caea938449c777d397c605c0ab8cbb6b.tar.xz
org.eclipse.cdt-2e36f9b4caea938449c777d397c605c0ab8cbb6b.zip
Added a TODO.
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core')
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractChecker.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractChecker.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractChecker.java
index dc47c2d82d..eafd9727b0 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractChecker.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/AbstractChecker.java
@@ -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) {

Back to the top