If I add a comment after the if keyword or after the criteria expression then they are lost and not printed.
Example:
public class Me {
{
if // test comment 1
(true) // test comment 2
{
// test comment 3
Integer i = 1; // test comment 4
} // test comment 5
if // test comment 6
(true) // test comment 7
Integer i = 1; // test comment 8
// test comment 9
}
}
Formatted:
public class Me {
{
if (true) {
// test comment 3
Integer i = 1; // test comment 4
} // test comment 5
if (true) {
Integer i = 1;
} // test comment 8
// test comment 9
}
}
If I add a comment after the if keyword or after the criteria expression then they are lost and not printed.
Example:
Formatted: