mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-20 04:20:25 +07:00
inspection to highlight and convert pseudo-functional code (like guava Iterables) to java 8 api. initial version
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.base.Function;
|
||||
|
||||
import java.lang.String;
|
||||
import java.util.Collections;
|
||||
|
||||
class c {
|
||||
void m() {
|
||||
Iterables.transf<caret>orm(Collections.emptyList(), new Function<String, String> () {
|
||||
@Override
|
||||
public String apply(String input) {
|
||||
java.util.stream.Collectors c;
|
||||
java.util.ArrayList l;
|
||||
System.out.println(input);
|
||||
//do something
|
||||
int i = 1;
|
||||
return input;
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user