Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Apr 15, 2018
1 parent 704c00c commit e20d6d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Source buildPositionCtElement(CtElement e, ASTNode node) {
if (variableDeclaration.type != null) {
modifiersSourceEnd = variableDeclaration.type.sourceStart() - 2;
} else if (variableDeclaration instanceof Initializer) {
modifiersSourceEnd = ((Initializer) variableDeclaration).block.sourceStart;
modifiersSourceEnd = ((Initializer) variableDeclaration).block.sourceStart - 1;
} else {
// variable that has no type such as TypeParameter
modifiersSourceEnd = declarationSourceStart - 1;
Expand Down

0 comments on commit e20d6d4

Please sign in to comment.