[if-s done]Re: elvis pattern refinement (was Syntax patterns)
Ruslan Shevchenko
rssh at gradsoft.com.ua
Fri Apr 24 11:06:31 PDT 2009
>
>> If I were writing Java today without the null-safe operators, then I
>> would typically use an if-statement:
>>
>> if (foo != null) {
>> foo.process();
>> }
>>
>> Bar bar = null;
>> if (foo != null) {
>> bar = foo.process();
>> }
>>
>> Stephen
>>
Just added, see
http://redmine.gradsoft.ua/repositories/entry/javachecker/trunk/JavaChecker/etc/checkers_elvis.def
starting from line 24
So, in next version will be correct elvis and loops.
More information about the coin-dev
mailing list