mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
redundant type args: check also method reference qualifiers
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Box<T>
|
||||
{
|
||||
public T getValue()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
void f(Stream<Box<String>> stream) {
|
||||
List<String> l3 = stream
|
||||
.map(Box::getValue)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// "Remove explicit type arguments" "true"
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Box<T>
|
||||
{
|
||||
public T getValue()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
void f(Stream<Box<String>> stream) {
|
||||
List<String> l3 = stream
|
||||
.map(Box<Stri<caret>ng>::getValue)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user