improve inspection wording, description and highlighting

This commit is contained in:
Bas Leijdekkers
2017-09-12 21:21:44 +02:00
parent 17ebd12891
commit fb5bf4994b
12 changed files with 91 additions and 69 deletions
@@ -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,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,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,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;
@@ -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);
}
}
@@ -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>());
}
}
@@ -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>());
}
}
@@ -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, ","));
}
}