Community
Participate
Working Groups
I20040506 + jdt.core, jdt.ui from HEAD In the following piece of code, 'unnecessary else statement' problem is only reported for the first 'else', no the second one. boolean test= true; if (test) { return; } else { // problem correctly reported here } if (test) { return; } else if (test) { // problem no reported here }
It is not flagging else-if on purpose so as to preserve this code pattern.