Various visits create a new ArrayList of lastAnnotations, which is never added to the tree.
In at least one of the visits, it will lead to a parsing error where annotations will disappear.
If trailing annotations cannot exist after modifiers in the visits, the new array list should be removed:
Various visits create a new ArrayList of
lastAnnotations
, which is never added to the tree. In at least one of the visits, it will lead to a parsing error where annotations will disappear.If trailing annotations cannot exist after modifiers in the visits, the new array list should be removed: