mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract: skip comments when no statement is selected but expression can be retrieved (IDEA-91985)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user