new inference: avoid prohibit cashing, don't check exceptions during overload resolution instead (IDEA-139531)

This commit is contained in:
Anna Kozlova
2015-04-27 17:17:02 +02:00
parent 538f104f29
commit 1233bccf4e
4 changed files with 21 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.atomic.LongAdder;
class Test {
{
Set<Map.Entry<String, Integer>> sort3 = new TreeSet<>((x, y) -> {
return Integer.compare(x.get<ref>Value(), y.getValue());
});
}
}