Index: pkg/analysis_server/tool/spec/codegen_java.dart |
diff --git a/pkg/analysis_server/tool/spec/codegen_java.dart b/pkg/analysis_server/tool/spec/codegen_java.dart |
index 3b7a4d2769c3c25837501b2b0ffc493660647657..9c4dd83a2aad1d77ee90dd772cee91913fe486ec 100644 |
--- a/pkg/analysis_server/tool/spec/codegen_java.dart |
+++ b/pkg/analysis_server/tool/spec/codegen_java.dart |
@@ -68,8 +68,8 @@ class CodegenJavaVisitor extends HierarchicalApiVisitor with CodeGenerator { |
final ToHtmlVisitor toHtmlVisitor; |
CodegenJavaVisitor(Api api) |
- : super(api), |
- toHtmlVisitor = new ToHtmlVisitor(api); |
+ : toHtmlVisitor = new ToHtmlVisitor(api), |
+ super(api); |
/** |
* Create a constructor, using [callback] to create its contents. |
@@ -262,7 +262,7 @@ class CodegenJavaVisitor extends HierarchicalApiVisitor with CodeGenerator { |
} |
@override |
- TypeReference resolveTypeReferenceChain(TypeReference type) { |
+ TypeDecl resolveTypeReferenceChain(TypeDecl type) { |
TypeDecl typeDecl = super.resolveTypeReferenceChain(type); |
if (typeDecl is TypeEnum) { |
return new TypeReference('String', null); |