Restrictions and workarounds

1type  MyVariable = test((/*comment*/a+b)*(c+d));
1int MyVariable = input[/*comment*/0];
1int[] MyAttribute /*comment*/;
1private static final String/*comment*/[] MyVariable =
2{
3...
4};
1private static final String [] MyVariable
2/*comment*/= {
3...
4};
1if (a == 10 && (/*comment*/
2// comment
3b>12
4)){
5...
6}
1public 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";
 1public enum Week{
 2_Monday_ /*comment*/,
 3_Tuesday_
 4//Comment
 5, _Wednesday_,
 6_Thursday_,
 7//Comment
 8_Friday_,
 9/*Comment*/ _Saturday_,
10_Sunday_
1public 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>