Home | History | Annotate | Download | only in tests
      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 = 1  +  2 + 3;
      8         int b = 1 + /* comment */ 2 + 3;
      9         int c = 1 +
     10                 2 + 3;
     11         int d = 1 + // comment
     12             2 + 3;
     13         int e = 1 + /* comment
     14             end */ 2 + 3;
     15     }
     16 
     17     public void m2() // comment()
     18     {
     19 
     20     }
     21 
     22     public void m3() throws @AnnoField(1) Exception {
     23 
     24     }
     25 
     26     // ()
     27     public  abstract  void  m4  ();
     28 
     29     // ()
     30     public abstract void //comment
     31         m5();
     32 
     33     // ()
     34     public abstract void /* comment
     35         end */ m6();
     36 
     37     // ()
     38     public abstract void m7
     39                            ();
     40 }
     41 
     42 @Target(ElementType.TYPE_USE)
     43 @interface AnnoField {
     44     int value();
     45 }
     46