KCR37: regressions: MoveVariableInsideIf: invalid(): use explicit scope
This commit is contained in:
parent
b04d131245
commit
710cfd151b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class MoveVariableInsideIf {
|
|||
* @return value
|
||||
*/
|
||||
@SuppressWarnings("movevariableinsideif")
|
||||
String invalid() {
|
||||
private String invalid() {
|
||||
String variable = input.substring(1);
|
||||
if (condition) {
|
||||
return method(variable);
|
||||
|
|
Loading…
Reference in a new issue