| Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
|
| index d535000e49aea886ed4f695ac839c62399bd72a8..f0c1bba99c4ec8c4d97a602a906fa7a1e874ecb1 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
|
| @@ -180,6 +180,25 @@ public class CollectionSemanticProcessorTest extends SemanticProcessorTest {
|
| "}");
|
| }
|
|
|
| + public void test_Collections_sort() throws Exception {
|
| + translateSingleFile(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "package test;",
|
| + "import java.util.*;",
|
| + "public class Test {",
|
| + " public void testA(List<String> items, Comparator<String> comparator) {",
|
| + " Collections.sort(items, comparator);",
|
| + " }",
|
| + "}");
|
| + runProcessor();
|
| + assertFormattedSource(
|
| + "class Test {",
|
| + " void testA(List<String> items, Comparator<String> comparator) {",
|
| + " items.sort(comparator);",
|
| + " }",
|
| + "}");
|
| + }
|
| +
|
| public void test_Collections_unmodifiableList() throws Exception {
|
| translateSingleFile(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|