mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
redundant type arguments for non-generic methods & method references
IDEA-187548
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
|
||||
import java.util.function.Function;
|
||||
public class TestClassRenamed {
|
||||
|
||||
{
|
||||
Function<String, Integer> r = this::foo;
|
||||
}
|
||||
|
||||
private <T> T foo(String s) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
class Collectors {
|
||||
{
|
||||
Integer.getInteger("");
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
|
||||
import java.util.function.Function;
|
||||
class MyTest {
|
||||
|
||||
{
|
||||
Function<String, Integer> r = Integer::getInteger;
|
||||
}
|
||||
}
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
|
||||
import java.util.function.Function;
|
||||
public class TestClassRenamed {
|
||||
|
||||
{
|
||||
Function<String, Integer> r = this::<In<caret>teger>foo;
|
||||
}
|
||||
|
||||
private <T> T foo(String s) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
class Collectors {
|
||||
{
|
||||
Integer.<Str<caret>ing>getInteger("");
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
|
||||
import java.util.function.Function;
|
||||
class MyTest {
|
||||
|
||||
{
|
||||
Function<String, Integer> r = Integer::<Int<caret>eger>getInteger;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user