Skip to main content
summaryrefslogtreecommitdiffstats
blob: 8976c78707b46e684d04206619bfa08f557d7370 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
 * This is a sample class, to demonstrate the problems
 * with the Eclipse formatter.
 * @author Adalbert Homa
 * @version 1.0
 */
public class FormatTest2 {

    public void testMethod() {
        for (int i = 0; i < 10; i++) {
            // Next line show the problem
                AccountAccessGroupBean aags = new AccountAccessGroupBean(//
        "a", // groupId
        "b", // groupName 
        "c", // lastModified
        "d" // modifiedFlag
    );
            // The second line is without end of line comments
            AccountAccessGroupBean b =
                new AccountAccessGroupBean("a", "b", "c", "d");
        }
    }

    private static class AccountAccessGroupBean {
        AccountAccessGroupBean(String a, String b, String c, String d) {
        }
    }
}

Back to the top