Community
Participate
Working Groups
Build ID: I20070621-1340 Steps To Reproduce: int i; i = 1; System.out.println(i); i = 2; System.out.println(i); i = 3; System.out.println(i); Inlining i of "i = 2;" or the statement after should produce: int i; i = 1; System.out.println(i); System.out.println(2); i = 3; System.out.println(i); Now inlining i of "int i;" or one of the two statements after that should produce: System.out.println(1); System.out.println(2); int i = 3; System.out.println(i);
Is this a common scenario for a variable that is inlined? I don't think so...
Fairly common if you're cleaning up code, a task where good support from the IDE is hugely appreciated. IntelliJ IDEA has exactly this feature, which is fantastic when you're coding. I can't tell you what the priorities is for Eclipse or what kind of IDE you want it to be, but this is the kind of features I personally value in the IDEs I like to use.