mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
ensure resolve is not cached during overload resolution
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.IntStream;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static java.util.stream.Collectors.counting;
|
||||
import static java.util.stream.Collectors.groupingBy;
|
||||
|
||||
abstract class Token {
|
||||
|
||||
|
||||
private static B<Long> getMode(Optional<Map.Entry<Integer, Long>> max){
|
||||
return max
|
||||
.flatMap(e -> Optional.of(new B<>(Long.valu<ref>eOf(e.getValue().longValue()))))
|
||||
.get();
|
||||
}
|
||||
|
||||
static class B<K> {
|
||||
public B(K k) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user