Skip to content

Commit cc0d864

Browse files
committed
revert some type changes that are no longer needed
1 parent 48b763c commit cc0d864

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript/extractor/src/com/semmle/jcorn/Parser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

javascript/extractor/src/com/semmle/js/ast/ClassBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)