ucr-riple / NullAwayAnnotator

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

Enhance error data structure. #112

Closed nimakarimipour closed 1 year ago

nimakarimipour commented 1 year ago

This PR is build upon #103.

In NullAway, if the error is resolvable and involved a pseudo-assignment of a @Nullable expression into a @NonNull target, the location of that target is serialized. This information is enough to generate a fix resolving the reported error. Currently we only store the location of the @Nonnull element in Error data structure. This PR updates Error data structure to store the actual fix which can resolve the error.

Changes in this PR

nimakarimipour commented 1 year ago

@msridhar @lazaroclapp Thank you for the review, landing it now.