From b6521b809c937fa6b68ca9245c1d6276fcb5b709 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 29 May 2017 13:35:19 +0100 Subject: [PATCH] KCR38: regressions: MoveVariableInsideIf: valid(): use explicit scope --- .../kemitix/checkstyle/regressions/MoveVariableInsideIf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 33dc9bd..bea9d91 100644 --- a/regressions/src/main/java/net/kemitix/checkstyle/regressions/MoveVariableInsideIf.java +++ b/regressions/src/main/java/net/kemitix/checkstyle/regressions/MoveVariableInsideIf.java @@ -55,7 +55,7 @@ class MoveVariableInsideIf { * * @return value */ - String valid() { + private String valid() { if (condition) { String variable = input.substring(1); return method(variable);