mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
redundant explicit types: available inside nested calls for java 8 (IDEA-134160)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Collectors {
|
||||
{
|
||||
List<String> l = Collectors.of();
|
||||
}
|
||||
|
||||
public static <E> List<E> of() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Collectors {
|
||||
public static void foo(List<String> list) {}
|
||||
{
|
||||
foo(Collectors.of());
|
||||
}
|
||||
|
||||
public static <E> List<E> of() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Collectors {
|
||||
{
|
||||
List<String> l = Collectors.<Str<caret>ing>of();
|
||||
}
|
||||
|
||||
public static <E> List<E> of() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
import java.util.List;
|
||||
|
||||
class Collectors {
|
||||
public static void foo(List<String> list) {}
|
||||
{
|
||||
foo(Collectors.<Str<caret>ing>of());
|
||||
}
|
||||
|
||||
public static <E> List<E> of() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Remove explicit type arguments" "false"
|
||||
import java.util.List;
|
||||
|
||||
class Collectors {
|
||||
public static <T> void foo(List<T> list) {}
|
||||
{
|
||||
foo(Collectors.<Str<caret>ing>of());
|
||||
}
|
||||
|
||||
public static <E> List<E> of() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user