Community
Participate
Working Groups
Build ID: M20090211-1700 Steps To Reproduce: Everything focusses on the preferences under "Window" -> "Preferences": 1. Hit "Java" -> "Code Style" -> "Formatter" 2. Click "Edit..." 3. Hit tab "New Lines" 4. In the button group "Array initializers" there are two checkboxes, the upper says "Insert new line after opening brace of array initializer". When checking that, the new line is entered correctly, however the indentation thereafter is set to *two* tabs instead of one. More information: I looked if I have another option set in all the formatting, but I couldn't find any that change the above. To me it looks like a (minor) bug.
Olivier, isn't it the expected behavior?
What value do you have in: Window -> Preferences -> Java -> Code Style -> Formatter -> Edit... -> Line Wrapping -> General settings => Default indentation for array initializers ? By default this is 2.
OK it works. I missed this setting. It's not a bug then. Thanks!
Bug closed.
Reopening to close as INVALID. FIXED means that some code was changed to fix an problem.
Closing as INVALID.
Verified for 3.5M7.