Files
openide/java/java-tests/testData/codeInsight/generation/surroundWith/java/CommentAsFirstTryCatchFinallySurroundStatement_after.java
Denis Zhdanov 06b56cf449 IDEA-25753 Surround With try-catch etc. - doesn't indent comment correctly
1. Java 'surround with' processing is corrected for the first comment statement;
2. Corresponding tests are added;
3. Green cody policy is applied;
2011-05-03 17:23:14 +04:00

11 lines
306 B
Java

class Test {
void foo() {
try {
// This is comment"
int i = 1;
} catch (Exception e) {
<caret><selection>e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.</selection>
} finally {
}
}
}