File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3219,7 +3219,7 @@ protected Node parseClass(Position startLoc, boolean isStatement) {
3219
3219
Expression superClass = this .parseClassSuper ();
3220
3220
Position bodyStartLoc = this .startLoc ;
3221
3221
boolean hadConstructor = false ;
3222
- List <MemberDefinition <?>> body = new ArrayList <>();
3222
+ List <MemberDefinition <?>> body = new ArrayList <MemberDefinition <?> >();
3223
3223
this .expect (TokenType .braceL );
3224
3224
while (!this .eat (TokenType .braceR )) {
3225
3225
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) {
20
20
}
21
21
22
22
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 ;
24
24
return null ;
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments