mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GuavaFluentIterableInspection: visitor moved to checkFile() + fixed findContainingMethodReturnType() method when expression is placed inside lambda expression
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import com.google.common.base.*;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.FluentIterable;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Main20 {
|
||||
void m() {
|
||||
Supplier<Object> doubleSupplier = () -> {
|
||||
FluentIterable<String> fi = FluentIterable.from(new ArrayList<String>());
|
||||
return fi.transf<caret>orm(new Function<String, Integer>() {
|
||||
@Override
|
||||
public Integer apply(String input) {
|
||||
return input.length();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import com.google.common.base.*;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.FluentIterable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Main20 {
|
||||
void m() {
|
||||
Supplier<Object> doubleSupplier = () -> {
|
||||
Stream<String> fi = new ArrayList<String>().stream();
|
||||
return fi.map(input -> input.length());
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user