File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3219,7 +3219,7 @@ protected Node parseClass(Position startLoc, boolean isStatement) {
32193219 Expression superClass = this .parseClassSuper ();
32203220 Position bodyStartLoc = this .startLoc ;
32213221 boolean hadConstructor = false ;
3222- List <MemberDefinition <?>> body = new ArrayList <>();
3222+ List <MemberDefinition <?>> body = new ArrayList <MemberDefinition <?> >();
32233223 this .expect (TokenType .braceL );
32243224 while (!this .eat (TokenType .braceR )) {
32253225 if (this .eat (TokenType .semi )) continue ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public void addMember(MemberDefinition<?> md) {
2020 }
2121
2222 public MethodDefinition getConstructor () {
23- for (Node md : body ) if (md instanceof MethodDefinition && (( MethodDefinition ) md ) .isConstructor ()) return (MethodDefinition ) md ;
23+ for (MemberDefinition <?> md : body ) if (md .isConstructor ()) return (MethodDefinition ) md ;
2424 return null ;
2525 }
2626
You can’t perform that action at this time.
0 commit comments