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

Key: IDEADEV-15184
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Alexey Kudravtsev
Reporter: Nikolay Chashnikov
Votes: 0
Watchers: 0
Operations

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

"Invert if condition" produce incorrect code for if-statement just before while-statement

Created: 12 Mar 07 17:11   Updated: 16 Oct 07 00:09
Component/s: Editor. Intention Actions
Fix Version/s: Diana Final

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

Build: 6,754


 Description  « Hide
Before:
public static Object m(VirtualFile file) {
    Map map = new HashMap();
    if (map.isEmpty()) {
      return null;
    }

    while (file != null) {
      file = file.getParent();
    }
    return null;
  }

After:

public static Object m(VirtualFile file) {
    Map map = new HashMap();
    if (!map.isEmpty()) {
      continue;
    }
    return null;

    while (file != null) {
      file = file.getParent();
    }
    return null;
  }


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