mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
improve inspection wording, description and highlighting
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -11,6 +11,6 @@ class C {
|
||||
s.add(101);
|
||||
s.add(102);
|
||||
final List<String> strings = new ArrayList<String>();
|
||||
string<caret>s.addAll(s);
|
||||
strings.<caret>addAll(s);
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -8,6 +8,6 @@ import java.util.Collection;
|
||||
class C {
|
||||
void m() {
|
||||
final Collection<String> strings = new ArrayList<String>();
|
||||
string<caret>s.addAll(new HashSet<String>());
|
||||
strings.<caret>addAll(new HashSet<String>());
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -8,6 +8,6 @@ class C {
|
||||
void m() {
|
||||
final List<String> strings;
|
||||
strings = new ArrayList<String>();
|
||||
string<caret>s.addAll(new HashSet<String>());
|
||||
strings.addAll<caret>(new HashSet<String>());
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// "Replace 'addAll/putAll' method with parametrized constructor call" "true"
|
||||
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -9,6 +9,6 @@ class C {
|
||||
void m(String s) {
|
||||
final List<String> strings;
|
||||
strings = new ArrayList<String>();
|
||||
string<caret>s.addAll(Arrays.asList(s, ","));
|
||||
strings.<caret>addAll(Arrays.asList(s, ","));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user