KCR37+38: MoveVariableInsideIf: avoid unused private methods
This commit is contained in:
parent
b6521b809c
commit
1a5ca4ceef
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue