mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
revert some type changes that are no longer needed
This commit is contained in:
@@ -20,7 +20,7 @@ public class ClassBody extends Node {
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user