don't cache substitutors during processing of all candidates (blinking red code)

This commit is contained in:
Anna.Kozlova
2016-04-05 21:02:27 +02:00
parent 00fa1f8137
commit cd9c406260
3 changed files with 47 additions and 4 deletions

View File

@@ -0,0 +1,22 @@
import java.util.function.Function;
import java.util.*;
class Test {
void m(Set<String> i) {
final List<String> getters = new ArrayList<String>(map(i, new Func<caret>tion<String, String>() {
@Override
public String apply(String propertyName) {
return propertyName;
}
}));
}
public static <T,V> List<V> map(Iterable<? extends T> iterable, Function<T, V> mapping) {
return null;
}
public static <T,V> List<V> map(Collection<? extends T> iterable, Function<T, V> mapping) {
return null;
}
}