mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
revert some type changes that are no longer needed
This commit is contained in:
@@ -3219,7 +3219,7 @@ public class Parser {
|
|||||||
Expression superClass = this.parseClassSuper();
|
Expression superClass = this.parseClassSuper();
|
||||||
Position bodyStartLoc = this.startLoc;
|
Position bodyStartLoc = this.startLoc;
|
||||||
boolean hadConstructor = false;
|
boolean hadConstructor = false;
|
||||||
List<MemberDefinition<?>> body = new ArrayList<>();
|
List<MemberDefinition<?>> body = new ArrayList<MemberDefinition<?>>();
|
||||||
this.expect(TokenType.braceL);
|
this.expect(TokenType.braceL);
|
||||||
while (!this.eat(TokenType.braceR)) {
|
while (!this.eat(TokenType.braceR)) {
|
||||||
if (this.eat(TokenType.semi)) continue;
|
if (this.eat(TokenType.semi)) continue;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class ClassBody extends Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MethodDefinition getConstructor() {
|
public MethodDefinition getConstructor() {
|
||||||
for (Node md : body) if (md instanceof MethodDefinition && ((MethodDefinition)md).isConstructor()) return (MethodDefinition) md;
|
for (MemberDefinition<?> md : body) if (md.isConstructor()) return (MethodDefinition) md;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user