Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java

Issue 18129004: Simplify constructors translation, improve code style. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
index 87e4e8e317d1ea41cc0aa6964076248f23ed3fdc..5d3a339a09effe77009ddf0349ddf23ddf85d060 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
@@ -236,26 +236,10 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
runProcessor();
assertFormattedSource(
"class Test extends JavaException {",
- " Test() {",
- " _jtd_constructor_0_impl();",
- " }",
- " _jtd_constructor_0_impl() {",
- " }",
- " Test.con1(String msg) : super(msg) {",
- " _jtd_constructor_1_impl(msg);",
- " }",
- " _jtd_constructor_1_impl(String msg) {",
- " }",
- " Test.con2(String msg, Exception e) : super(msg, e) {",
- " _jtd_constructor_2_impl(msg, e);",
- " }",
- " _jtd_constructor_2_impl(String msg, Exception e) {",
- " }",
- " Test.con3(Exception e) : super.withCause(e) {",
- " _jtd_constructor_3_impl(e);",
- " }",
- " _jtd_constructor_3_impl(Exception e) {",
- " }",
+ " Test();",
+ " Test.con1(String msg) : super(msg);",
+ " Test.con2(String msg, Exception e) : super(msg, e);",
+ " Test.con3(Exception e) : super.withCause(e);",
"}");
}

Powered by Google App Engine
This is Rietveld 408576698