Reporter | Julien Lebosquain (mrjul) |
---|---|
Created | Feb 16, 2012 12:58:03 PM |
Updated | Feb 17, 2012 6:19:22 PM |
Resolved | Feb 16, 2012 8:52:48 PM |
Priority | Normal |
Type | Feature |
Fix versions | Next |
State | Fixed |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | Quick Fixes |
Affected versions | 6.1 |
Fixed in build | 6.5.1.4579 |
A useful highlighting / quick fix could be to warn about the following situation:
x != null is redundant here, since is always returns false if its first operand is null.
if (x != null && x is SomeType) { ... }
x != null is redundant here, since is always returns false if its first operand is null.