#550 New check: AndConditionNeedOptimization

open
nobody
None
5
2012-10-10
2010-11-05
Roman Ivanov
No

Optimization of condition (if(short form)/while/for/... any expression) statements - check local variables and fields be placed before calling methods in "&&" conditions.

Example "if (checkVisibility(...) && otherVisibilityCriteria)" ==> "if (otherVisibilityCriteria && checkVisibility(...))"

Discussion