KCR37+38: MoveVariableInsideIf: avoid unused private methods

This commit is contained in:
Paul Campbell 2017-05-29 14:10:04 +01:00
parent b6521b809c
commit 1a5ca4ceef

View file

@ -42,7 +42,7 @@ class MoveVariableInsideIf {
* @return value * @return value
*/ */
@SuppressWarnings("movevariableinsideif") @SuppressWarnings("movevariableinsideif")
private String invalid() { protected String invalid() {
String variable = input.substring(1); String variable = input.substring(1);
if (condition) { if (condition) {
return method(variable); return method(variable);
@ -55,7 +55,7 @@ class MoveVariableInsideIf {
* *
* @return value * @return value
*/ */
private String valid() { protected String valid() {
if (condition) { if (condition) {
String variable = input.substring(1); String variable = input.substring(1);
return method(variable); return method(variable);