KCR37: regressions: MoveVariableInsideIf: invalid(): use explicit scope

This commit is contained in:
Paul Campbell 2017-05-29 13:34:52 +01:00
parent b04d131245
commit 710cfd151b

View file

@ -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);