ucr-riple / NullAwayAnnotator

A tool to help adapting code bases to NullAway type system.
MIT License
13 stars 6 forks source link

Insert annotations at the correct position for arrays #251

Open avenger2597 opened 1 week ago

avenger2597 commented 1 week ago

This PR helps insert annotations at the correct position for array declarations.

For array declarations we want the annotations to be inserted just before the array type brackets. For example : String @Nullable [] f2;

Currently, the behaviour is that the annotations are inserted before the simpleName type. Like this : @Nullable String[] f2;

nimakarimipour commented 1 week ago

@avenger2597 Please add a description to the PR explaining what it does, the bug it resolves, and how the changes address the issue. Also, update the title to accurately reflect the purpose of the PR.

nimakarimipour commented 1 week ago

@avenger2597 Make sure you merge the latest changes on master branch before resolving comments.