Skip to main content
summaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorAlena Laskavaia2010-06-03 22:31:10 -0400
committerAlena Laskavaia2010-06-03 22:31:10 -0400
commit21c368302810550a102eab75ce1ff75c54bc5b13 (patch)
tree15db742527681ce028a6e49028f7c01405d2d347 /codan
parent70a8342263684b813353e4b0c4c96fc5e545181f (diff)
downloadorg.eclipse.cdt-21c368302810550a102eab75ce1ff75c54bc5b13.tar.gz
org.eclipse.cdt-21c368302810550a102eab75ce1ff75c54bc5b13.tar.xz
org.eclipse.cdt-21c368302810550a102eab75ce1ff75c54bc5b13.zip
Added call to super() to initialize common parameters
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java1
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ReturnChecker.java1
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/StatementHasNoEffectChecker.java1
3 files changed, 3 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java
index b0e2aae842..4758ed1766 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/NamingConventionFunctionChecker.java
@@ -67,6 +67,7 @@ public class NamingConventionFunctionChecker extends AbstractIndexAstChecker
* (org.eclipse.cdt.codan.core.model.IProblemWorkingCopy)
*/
public void initPreferences(IProblemWorkingCopy problem) {
+ super.initPreferences(problem);
addPreference(
problem,
PARAM_KEY,
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ReturnChecker.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ReturnChecker.java
index cce2b2d915..2f1d4beab5 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ReturnChecker.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/ReturnChecker.java
@@ -164,6 +164,7 @@ public class ReturnChecker extends AbstractAstFunctionChecker {
/* checker must implement @link ICheckerWithPreferences */
public void initPreferences(IProblemWorkingCopy problem) {
+ super.initPreferences(problem);
if (problem.getId().equals(RET_NO_VALUE_ID)
|| problem.getId().equals(RET_NORET_ID)) {
addPreference(problem, PARAM_IMPLICIT,
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/StatementHasNoEffectChecker.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/StatementHasNoEffectChecker.java
index b19cec6f14..331e86b1f9 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/StatementHasNoEffectChecker.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/internal/checkers/StatementHasNoEffectChecker.java
@@ -127,6 +127,7 @@ public class StatementHasNoEffectChecker extends AbstractIndexAstChecker {
}
public void initPreferences(IProblemWorkingCopy problem) {
+ super.initPreferences(problem);
addPreference(problem, PARAM_MACRO_ID,
CheckersMessages.StatementHasNoEffectChecker_ParameterMacro,
Boolean.TRUE);

Back to the top