Skip to content

Commit

Permalink
correctly lint public constructor in abstract class
Browse files Browse the repository at this point in the history
  • Loading branch information
Luro02 committed May 16, 2024
1 parent ef6173a commit c812402
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import de.firemage.autograder.core.integrated.IdentifierNameUtils;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import spoon.processing.AbstractProcessor;
import spoon.reflect.declaration.CtClass;
Expand All @@ -26,7 +25,7 @@

@ExecutableCheck(reportedProblems = {
ProblemType.ABSTRACT_CLASS_WITHOUT_ABSTRACT_METHOD,
ProblemType.USE_DIFFERENT_VISIBILITY,
ProblemType.USE_DIFFERENT_VISIBILITY_PEDANTIC,
ProblemType.SHOULD_BE_INTERFACE,
ProblemType.COMPOSITION_OVER_INHERITANCE
})
Expand Down Expand Up @@ -87,7 +86,7 @@ public void process(CtClass<?> ctClass) {
"suggestion", "protected"
)
),
ProblemType.USE_DIFFERENT_VISIBILITY
ProblemType.USE_DIFFERENT_VISIBILITY_PEDANTIC
);
}
}
Expand Down

0 comments on commit c812402

Please sign in to comment.