File tree Expand file tree Collapse file tree
src/main/java/fr/greencodeinitiative/java/checks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class AvoidConcatenateStringsInLoop extends IssuableSubscriptionVisitor {
4141 public static final String MESSAGE_RULE = "Don't concatenate Strings in loop, use StringBuilder instead." ;
4242 private static final String STRING_CLASS = String .class .getName ();
4343
44- private final StringConcatenationVisitor VISITOR = new StringConcatenationVisitor ();
44+ private final StringConcatenationVisitor visitor = new StringConcatenationVisitor ();
4545
4646 @ Override
4747 public List <Tree .Kind > nodesToVisit () {
@@ -54,7 +54,7 @@ public List<Tree.Kind> nodesToVisit() {
5454
5555 @ Override
5656 public void visitNode (@ Nonnull Tree tree ) {
57- tree .accept (VISITOR );
57+ tree .accept (visitor );
5858 }
5959
6060 private class StringConcatenationVisitor extends BaseTreeVisitor {
@@ -75,10 +75,10 @@ public void visitAssignmentExpression(AssignmentExpressionTree tree) {
7575 super .visitAssignmentExpression (tree );
7676 }
7777 }
78- }
7978
80- private boolean isStringType (ExpressionTree expressionTree ) {
81- return expressionTree .symbolType ().is (STRING_CLASS );
79+ private boolean isStringType (ExpressionTree expressionTree ) {
80+ return expressionTree .symbolType ().is (STRING_CLASS );
81+ }
8282 }
8383
8484}
You can’t perform that action at this time.
0 commit comments