Rule Set: design
Code Sample demonstrating the issue:
public boolean isOk() {
boolean isWrong = foo();
return !isWrong;
}
I'd like to make the negation explicit, as the tiny character ! is easy to read over.
Violation:
[UnnecessaryLocalBeforeReturn] Consider simply returning the value vs storing it in local variable 'isWrong'
Rule Set: design
Code Sample demonstrating the issue:
I'd like to make the negation explicit, as the tiny character
!is easy to read over.Violation:
[UnnecessaryLocalBeforeReturn] Consider simply returning the value vs storing it in local variable 'isWrong'