mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
CommentTracker: do not add comments at the beginning of reference qualifier: add it to the parent element instead
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
import java.util.*;
|
||||
|
||||
import static java.util.Arrays.*;
|
||||
|
||||
class Foo {
|
||||
void test(String[] foos, String[] bars) {
|
||||
System.out.println(/*foos1*//*foos2*/asList(foos)+":"+ /*bars1*//*bars2*/asList(bars));
|
||||
System.out.println(/*foos1*//*foos2*/asList(foos)+":"+/*bars1*//*bars2*/asList(bars));
|
||||
}
|
||||
|
||||
void test2(String[] foos, String[] bars) {
|
||||
System.out.println(/*foos1*//*foos2*/asList(foos)+":"+ /*bars1*//*bars2*/asList(bars));
|
||||
System.out.println(/*foos0*//*foos1*//*foos2*/asList(foos)+":"+/*bars0*//*bars1*//*bars2*/asList(bars));
|
||||
}
|
||||
|
||||
void test3(String[] foos, String[] bars) {
|
||||
System.out.println(//line comment
|
||||
asList(foos)+":"+//line comment
|
||||
asList(bars));
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,8 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
import java.util.Arrays;
|
||||
|
||||
import static java.util.Arrays.*;
|
||||
|
||||
public class MyFile {
|
||||
void test() {
|
||||
System.out.println(/*1*//*2*/asList(/*3*//*4*/asList("foo", /*5*//*6*/asList("bar", "baz")), /*7*//*8*/asList("qux")));
|
||||
System.out.println(/*1*//*2*/asList(/*3*//*4*/asList("foo", /*5*/ /*6*/ asList("bar", "baz")), /*7*/ /*8*/ asList("qux")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
// "Add on demand static import for 'java.util.Arrays'" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Foo {
|
||||
void test(String[] foos, String[] bars) {
|
||||
System.out.println(<caret>Arrays/*foos1*/./*foos2*/asList(foos)+":"+Arrays/*bars1*/./*bars2*/asList(bars));
|
||||
}
|
||||
|
||||
void test2(String[] foos, String[] bars) {
|
||||
System.out.println(Arrays/*foos1*/./*foos2*/asList(foos)+":"+Arrays/*bars1*/./*bars2*/asList(bars));
|
||||
System.out.println(/*foos0*/Arrays/*foos1*/./*foos2*/asList(foos)+":"+/*bars0*/Arrays/*bars1*/./*bars2*/asList(bars));
|
||||
}
|
||||
|
||||
void test3(String[] foos, String[] bars) {
|
||||
System.out.println(Arrays.//line comment
|
||||
asList(foos)+":"+Arrays.//line comment
|
||||
asList(bars));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user