| Summary: | [quick assist] 'Pull Negation up' and 'Push Negation down' unnecessarily available | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Deepak Azad <deepakazad> | ||||
| Component: | UI | Assignee: | Deepak Azad <deepakazad> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | markus.kell.r, raksha.vasisht | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M6 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Should also not show up for simpler cases like:
if (!b) { }
Created attachment 189399 [details]
fix+tests
Fixed in HEAD. Verified for 3.6 M6. |
3.7 M5 ------------------------------------------------------------ package snippet; public class Snippet { void foo(Object a) { if (!(a instanceof String)) { } } } ------------------------------------------------------------ - Select "!(a instanceof String)" - Ctrl+1 - 'Pull Negation up' and 'Pull Negation down' are available, but they do not really do anything here...