| Index: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| index 55b7cd6c033c942ed158e464f28030df8f7c6a25..46fdaae45bbff64ece3d6031499a0dcf50f8fc0f 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| +++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| @@ -40,6 +40,13 @@ bool isInstanceOf(o, Type t) {
|
| 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 Math {
|
| }
|
|
|
| class RuntimeException extends JavaException {
|
| - RuntimeException([String message = "", Exception cause = null]) :
|
| + RuntimeException({String message: "", Exception cause: null}) :
|
| super(message, cause);
|
| }
|
|
|
| @@ -436,6 +443,10 @@ bool javaBooleanOr(bool a, bool b) {
|
| return a || b;
|
| }
|
|
|
| +bool javaBooleanAnd(bool a, bool b) {
|
| + return a && b;
|
| +}
|
| +
|
| class JavaStringBuilder {
|
| StringBuffer sb = new StringBuffer();
|
| String toString() => sb.toString();
|
|
|