History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-8601
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alexey Kudravtsev
Reporter: Michael Besosa
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Incorrect "always false" inspection

Created: 17 Aug 06 19:31   Updated: 22 Aug 06 17:08
Component/s: Code Analysis. Inspection
Fix Version/s: Demetra 5646

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 5,622
Fixed in build: 5,630
Severity: Medium


 Description  « Hide
In code like the following
final Boolean override = obj.resolveValueConflict();

if (override == null) {
    doSomething();
} else if (override) {    // always false?
    doOverride();
}

IDEA is flagging the else-if expression as "always false". Seems wrong to me. Obviously, the project's language level is 1.5.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.