testdata for IDEA-137277

(cherry picked from commit d98f44e277ae128ef6fb279a4e0dd738f9162939)
This commit is contained in:
Anna Kozlova
2015-03-09 16:38:37 +01:00
parent f19a6c1ed8
commit bece20cb9f
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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>> sort = new TreeSet<>((x, y) -> Integer.compare(x.getValue(), y.getValue()));
Set<Map.Entry<String, LongAdder>> sort2 = new TreeSet<>((x, y) -> Long.compare(x.getValue().longValue(), y.getValue().longValue()));
Set<Map.Entry<String, Integer>> sort3 = new TreeSet<>((x, y) -> {
return Integer.compare(x.getValue(), y.getValue());
});
Set<Map.Entry<String, LongAdder>> sort4 = new TreeSet<>((x, y) -> {
return Long.compare(x.getValue().longValue(), y.getValue().longValue());
});
}
}