From 1a5ca4ceef1df94a255e8ef7751e23e619fe0010 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 29 May 2017 14:10:04 +0100 Subject: [PATCH] KCR37+38: MoveVariableInsideIf: avoid unused private methods --- .../kemitix/checkstyle/regressions/MoveVariableInsideIf.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 bea9d91..a13ccb3 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") - private String invalid() { + protected String invalid() { String variable = input.substring(1); if (condition) { return method(variable); @@ -55,7 +55,7 @@ class MoveVariableInsideIf { * * @return value */ - private String valid() { + protected String valid() { if (condition) { String variable = input.substring(1); return method(variable);