Skip to content

Commit

Permalink
split up common reimplementation check #415
Browse files Browse the repository at this point in the history
  • Loading branch information
Luro02 committed Apr 4, 2024
1 parent f20a866 commit 9efb5ea
Show file tree
Hide file tree
Showing 13 changed files with 1,036 additions and 818 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.core.check.api.CommonReimplementation.CtEnumFieldRead;
import de.firemage.autograder.core.check.api.UseEnumValues.CtEnumFieldRead;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtBlock;
import spoon.reflect.code.CtExpression;
Expand Down Expand Up @@ -94,7 +94,7 @@ private void reportProblem(CtVariable<?> ctVariable, List<CtExpression<?>> added
fieldReads.add(fieldRead.ctEnumValue());
}

if (ctEnum != null && CommonReimplementation.checkEnumValues(ctEnum, isOrderedCollection(ctVariable.getType()), fieldReads)) {
if (ctEnum != null && UseEnumValues.checkEnumValues(ctEnum, isOrderedCollection(ctVariable.getType()), fieldReads)) {
addLocalProblem(
ctVariable,
new LocalizedMessage(
Expand Down
Loading

0 comments on commit 9efb5ea

Please sign in to comment.