Restrictions and workarounds

1 type  MyVariable = test((/*comment*/a+b)*(c+d));
1 int MyVariable = input[/*comment*/0];
1 int[] MyAttribute /*comment*/;
1 private static final String/*comment*/[] MyVariable =
2 {
3 ...
4 };
1 private static final String [] MyVariable
2 /*comment*/= {
3 ...
4 };
1 if (a == 10 && (/*comment*/
2 // comment
3 b>12
4 )){
5 ...
6 }
1 public static final String
2 //comment
3 _URL_1_ = "http://www.modeliosoft.com",
4 //comment
5 _URL_2_= "http://www.modeliosoft.fr",
6 _URL_3_= "http://www.modeliosoft.fr";
 1 public enum Week{
 2 _Monday_ /*comment*/,
 3 _Tuesday_
 4 //Comment
 5 , _Wednesday_,
 6 _Thursday_,
 7 //Comment
 8 _Friday_,
 9 /*Comment*/ _Saturday_,
10 _Sunday_
1 public void actionPerformed(ActionEvent e) {
2 ...
3 }   //

Example:

Replace:

1 ...
2  } //comment<end of file>

with:

1 ...
2 } //comment<end of file><return>
3 <end of file>