Index: dart/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart |
=================================================================== |
--- dart/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart (revision 29785) |
+++ dart/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart (working copy) |
@@ -40,6 +40,13 @@ |
if (oTypeName == "${tTypeName}Impl") { |
return true; |
} |
+ if (tTypeName == "FormalParameter") { |
+ return |
+ oTypeName == "DefaultFormalParameter" || |
+ oTypeName == "FieldNormalParameter" || |
+ oTypeName == "FunctionTypedFormalParameter" || |
+ oTypeName == "SimpleFormalParameter"; |
+ } |
if (tTypeName == "MethodElement") { |
if (oTypeName == "MethodMember") { |
return true; |
@@ -272,7 +279,7 @@ |
} |
class RuntimeException extends JavaException { |
- RuntimeException([String message = "", Exception cause = null]) : |
+ RuntimeException({String message: "", Exception cause: null}) : |
super(message, cause); |
} |
@@ -436,6 +443,10 @@ |
return a || b; |
} |
+bool javaBooleanAnd(bool a, bool b) { |
+ return a && b; |
+} |
+ |
class JavaStringBuilder { |
StringBuffer sb = new StringBuffer(); |
String toString() => sb.toString(); |