Closed nimakarimipour closed 1 year ago
This PR enables Annotator to inject/remove type use annotation.
On type-use annotation addition, injector inserts the annotation on the types name:
java.util.List<String> list;
Will be:
java.util.@Nullable List<String> list;
Also, our current implementation, will add the annotation on all type arguments on the declaration as well: Final output is:
java.util.@Nullable List<@Nullable String> list;
Within this PR the support for type-use annotation is added including both addition and deletion.
addition
deletion
On deletion for expression:
java.util.@Nullable Map<@Nullable String, java.lang.@Nullable String> list;
Should be:
java.util.Map<String, java.lang.String> list;
@msridhar Thank you for the review, this is ready for another round.
This PR is built upon #184#184 is landedThis PR enables Annotator to inject/remove type use annotation.
On type-use annotation addition, injector inserts the annotation on the types name:
Will be:
Also, our current implementation, will add the annotation on all type arguments on the declaration as well: Final output is:
Within this PR the support for type-use annotation is added including both
addition
anddeletion
.On deletion for expression:
Should be: