| 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 685de338e0470f994bf8f76974a1ea33999a4e07..d535000e49aea886ed4f695ac839c62399bd72a8 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
|
| @@ -279,17 +279,24 @@ public class CollectionSemanticProcessorTest extends SemanticProcessorTest {
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| "package test;",
|
| "import java.util.HashSet;",
|
| + "import java.util.Collection;",
|
| "public class Test {",
|
| - " public void main() {",
|
| + " public void testA() {",
|
| " HashSet<String> result = new HashSet<String>(5);",
|
| " }",
|
| + " public void testB(Collection<String> existing) {",
|
| + " HashSet<String> result = new HashSet<String>(existing);",
|
| + " }",
|
| "}");
|
| runProcessor();
|
| assertFormattedSource(//
|
| "class Test {",
|
| - " void main() {",
|
| + " void testA() {",
|
| " Set<String> result = new Set<String>();",
|
| " }",
|
| + " void testB(Iterable<String> existing) {",
|
| + " Set<String> result = new Set<String>.from(existing);",
|
| + " }",
|
| "}");
|
| }
|
|
|
|
|