mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspection] IDEA-374938 Java: 'Static import can be used' reported for List.of().
- rename title to be clear GitOrigin-RevId: 1c68fe4bc08065136a827a9ef1c7fd949799e7f2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ad6783a429
commit
6fab55f031
@@ -5,7 +5,7 @@ import static java.util.Arrays.sort;
|
||||
|
||||
class Foo {
|
||||
void test(String[] baz) {
|
||||
<warning descr="Static import can be used">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used">Arrays</warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays</warning>.sort(baz);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import java.util.Arrays;
|
||||
|
||||
class Foo {
|
||||
void test(String[] baz) {
|
||||
<warning descr="Static import can be used">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used">Arrays</warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays</warning>.sort(baz);
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import java.util.Arrays;
|
||||
|
||||
class Foo {
|
||||
void test(String[] baz) {
|
||||
<warning descr="Static import can be used">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays<caret></warning>.sort(baz);
|
||||
Arrays.binarySearch(baz, "1");
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import java.util.Arrays;
|
||||
|
||||
class Foo {
|
||||
void test(String[] baz) {
|
||||
<warning descr="Static import can be used">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays<caret></warning>.sort(baz);
|
||||
Arrays.binarySearch(baz, "1");
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import java.util.Arrays;
|
||||
|
||||
class Foo {
|
||||
void test(String[] baz) {
|
||||
<warning descr="Static import can be used">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used">Arrays</warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays<caret></warning>.sort(baz);
|
||||
<warning descr="Static import can be used based on the auto-import table">Arrays</warning>.sort(baz);
|
||||
}
|
||||
}
|
||||
@@ -1431,7 +1431,7 @@ inspection.slow.abstract.set.remove.all.fix.family.name=Use 'Set.remove' instead
|
||||
inspection.slow.list.contains.all.description=Call to 'list.containsAll(collection)' may have poor performance
|
||||
inspection.slow.list.contains.all.fix.family.name=Wrap in 'HashSet' constructor
|
||||
inspection.slow.list.contains.all.fix.name=Wrap ''{0}'' in ''HashSet'' constructor
|
||||
inspection.static.import.can.be.used.display.name=Static import can be used
|
||||
inspection.static.import.can.be.used.display.name=Static import can be used based on the auto-import table
|
||||
inspection.static.import.can.be.used.fix.name=Add static import
|
||||
slice.filter.parse.error.null.filter.not.applicable.for.primitive.type=''null'' filter is not applicable to primitive type {0}
|
||||
slice.filter.parse.error.not.null.filter.not.applicable.for.primitive.type=''!null'' filter is not applicable to primitive type {0}
|
||||
|
||||
Reference in New Issue
Block a user