Skip to content

Commit

Permalink
int x,y not handled properly in some cases
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed Apr 11, 2024
1 parent 53e57af commit 64433c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ private FieldDeclaration convertFieldDeclaration(JCVariableDecl javac, ASTNode p
List<ASTNode> sameStartPosition = new ArrayList<>();
if( parent instanceof TypeDeclaration decl) {
decl.bodyDeclarations().stream().filter(x -> x instanceof FieldDeclaration)
.filter(x -> ((FieldDeclaration)x).getStartPosition() == javac.getStartPosition())
.filter(x -> ((FieldDeclaration)x).getType().getStartPosition() == javac.vartype.getStartPosition())
.forEach(x -> sameStartPosition.add((ASTNode)x));
}
if( sameStartPosition.size() >= 1 ) {
Expand Down

0 comments on commit 64433c5

Please sign in to comment.