Community
Participate
Working Groups
Build ID: M20090211-1700 Steps To Reproduce: We'd like to create some formatting rules where the following lines are valid and will remain intact after formatting: @Target({ ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) public @interface Foo { } and int[] ints = new int[] { 1, 2, 3 }; The problem is that when I set Eclipse to add a space after the first and before the last curly bracket AND a space before the array initialization, it adds a space for the default annotation parameter initialization, so it becomes @Retention( { ElementType.ANNOTATION_TYPE }) which is unsymmetrical and a bit ugly. If it's possible to do this formatting in 3.4.2, please forgive me. More information:
Created attachment 139650 [details] Proposed patch Disable the formatter preference inserting a space before the array initializer while traversing an annotation...
Released for 3.6M1
Verified for 3.6M1 using build I20090802-2000