Community
Participate
Working Groups
public class A { public void foo() { @SuppressWarnings("unused") double i= 0, y= 1; } } promote i to a field. You get: public void foo() { fI = 0; @SuppressWarnings("unused") double y= 1; } I expected public void foo() { fI = 0; @SuppressWarnings("unused") double y= 1; }
Depends on your code formatter settings. If you like to have annotations on the same line, you should should turn "New Lines > Insert new line after Annotations" off and it will work as expected. However, there's a similar bug 106147 which does not work as expected. Marking as dup of bug 106147 to check this again once 106147 has been fixed. *** This bug has been marked as a duplicate of 106147 ***