extract: skip comments when no statement is selected but expression can be retrieved (IDEA-91985)

This commit is contained in:
anna
2012-11-13 21:33:15 +01:00
parent 822c6cb9a4
commit 4347e15507
4 changed files with 34 additions and 1 deletions
@@ -0,0 +1,5 @@
class Test {
public static void main(String[] args) {
String arg = <selection>args[0]; //comment</selection>
}
}
@@ -0,0 +1,9 @@
class Test {
public static void main(String[] args) {
String arg = newMethod(args[0]); //comment
}
private static String newMethod(String arg) {
return arg;
}
}