1 import java.lang.annotation.ElementType; 2 import java.lang.annotation.Target; 3 4 public abstract class NonStandardSpacing { 5 6 public void m1() { 7 int a = ((@Anno int) (1 + 2)) + 3; 8 int b = ((@Anno int) (1 + /* comment */ 2)) + 3; 9 int c = ((@Anno int) (1 + 10 2)) + 3; 11 int d = ((@Anno int) (1 + // comment 12 2)) + 3; 13 int e = ((@Anno int) (1 + /* comment 14 end */ 2)) + 3; 15 } 16 17 public void m2(@Anno NonStandardSpacing this) // comment() 18 { 19 20 } 21 22 public void m3(@Anno NonStandardSpacing this) throws @AnnoField(1) Exception { 23 24 } 25 26 // () 27 public abstract void m4 (@Anno NonStandardSpacing this); 28 29 // () 30 public abstract void //comment 31 m5(@Anno NonStandardSpacing this); 32 33 // () 34 public abstract void /* comment 35 end */ m6(@Anno NonStandardSpacing this); 36 37 // () 38 public abstract void m7 39 (@Anno NonStandardSpacing this); 40 } 41 42 @Target(ElementType.TYPE_USE) 43 @interface AnnoField { 44 int value(); 45 } 46