Skip to content

Commit

Permalink
fix AvoidStringConcat
Browse files Browse the repository at this point in the history
  • Loading branch information
Luro02 committed Jul 13, 2024
1 parent af0f922 commit 08b1fc5
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
package de.firemage.autograder.core.check.api;


import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.MethodUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtInvocation;

import java.util.Map;

@ExecutableCheck(reportedProblems = { ProblemType.AVOID_STRING_CONCAT })
public class AvoidStringConcat extends IntegratedCheck {
@Override
protected void check(StaticAnalysis staticAnalysis) {
/*staticAnalysis.processWith(new AbstractProcessor<CtInvocation<?>>() {
staticAnalysis.processWith(new AbstractProcessor<CtInvocation<?>>() {
@Override
public void process(CtInvocation<?> ctInvocation) {
if (ctInvocation.isImplicit()
Expand Down Expand Up @@ -38,7 +44,6 @@ public void process(CtInvocation<?> ctInvocation) {
ProblemType.AVOID_STRING_CONCAT
);
}
});*/
throw new IllegalStateException("Called from the core");
});
}
}

0 comments on commit 08b1fc5

Please sign in to comment.