diff --git a/regressions/src/main/java/net/kemitix/checkstyle/regressions/MoveVariableInsideIf.java b/regressions/src/main/java/net/kemitix/checkstyle/regressions/MoveVariableInsideIf.java index dd7dda2..6e6151f 100644 --- a/regressions/src/main/java/net/kemitix/checkstyle/regressions/MoveVariableInsideIf.java +++ b/regressions/src/main/java/net/kemitix/checkstyle/regressions/MoveVariableInsideIf.java @@ -42,7 +42,7 @@ class MoveVariableInsideIf { * @return value */ @SuppressWarnings("movevariableinsideif") - String invalid() { + protected String invalid() { String variable = input.substring(1); if (condition) { return method(variable); @@ -55,7 +55,7 @@ class MoveVariableInsideIf { * * @return value */ - String valid() { + protected String valid() { if (condition) { String variable = input.substring(1); return method(variable);