Merge pull request #45 from kemitix/kcr-37-38-explicit-scope
KCR37 & 38 explicit scope
This commit is contained in:
commit
dbb8bde53e
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class MoveVariableInsideIf {
|
||||||
* @return value
|
* @return value
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("movevariableinsideif")
|
@SuppressWarnings("movevariableinsideif")
|
||||||
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
|
||||||
*/
|
*/
|
||||||
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);
|
||||||
|
|
Loading…
Reference in a new issue