01: /*
02: * testReformat.java
03: *
04: * Created on January 10, 2007, 4:29 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.test.java.editor.formatting;
11:
12: /**
13: *
14: * @author jp159440
15: */
16: public class testReformat {
17:
18: /** Creates a new instance of testReformat */
19: public testReformat() {
20: }
21:
22: public String doSmt(int a, String b, boolean c) {
23: do {
24: switch (a) {
25: case 1:
26: System.out.println("one");
27: break;
28: case 2:
29: System.out.println("two");
30: default:
31: if (a > 4) {
32: while (a != 4) {
33: a--;
34: }
35: } else if (a > 2)
36: a = 4;
37: }
38: } while (a == 2);
39: //comment
40:
41: /**
42: * a g
43: * b f
44: * c e
45: * d
46: * c e
47: * b f
48: * a g
49: */
50: return "done";
51: // comments
52: }
53:
54: }
|