mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
StaticPseudoFunctionalStyleMethodInspection: doesn't throw exception when lambda is variable
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.base.Function;
|
||||
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
class c {
|
||||
void m() {
|
||||
final Function<String, String> function = (Function<String, String>)new Function<String, String>() {
|
||||
@Override
|
||||
public String apply(String input) {
|
||||
Collectors c;
|
||||
ArrayList l;
|
||||
System.out.println(input);
|
||||
//do something
|
||||
int i = 1;
|
||||
return input;
|
||||
}
|
||||
};
|
||||
Iterables.transfo<caret>rm(Collections.emptyList(), function);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user