Community
Participate
Working Groups
Build Identifier: I20110613-1736 Indentation does not work properly after one-line (no-brace) foreach statements. Example code: public class Bork { public static void method() { int sum = 0; int[][] grid = new int[9][9]; for(int r = 0; r < 9; r++) for(int c = 0; c < 9; c++) sum++; sum = 0; for(int[] row : grid) for(int el : row) sum++; sum = 0; } } Reproducible: Always Steps to Reproduce: 1.Write a foreach statement 2.Fill its block with only one statement, and don't use braces 3.Hit enter and type another statement
*** This bug has been marked as a duplicate of bug 348198 ***