Skip to content

Commit

Permalink
Fix part of ASTConverter15JLS8Test.test0013 through 15 and others
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed May 2, 2024
1 parent 013071a commit 26964c4
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,12 @@ private AbstractTypeDeclaration convertClassDecl(JCClassDecl javacClassDecl, AST
}

if( javacClassDecl.getTypeParameters() != null ) {
Iterator<JCTypeParameter> i = javacClassDecl.getTypeParameters().iterator();
while(i.hasNext()) {
JCTypeParameter next = i.next();
typeDeclaration.typeParameters().add(convert(next));
if( this.ast.apiLevel != AST.JLS2_INTERNAL) {
Iterator<JCTypeParameter> i = javacClassDecl.getTypeParameters().iterator();
while(i.hasNext()) {
JCTypeParameter next = i.next();
typeDeclaration.typeParameters().add(convert(next));
}
}
}

Expand Down

0 comments on commit 26964c4

Please sign in to comment.