ucr-riple / NullAwayAnnotator

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

Add a language level option for parsing #232

Closed msridhar closed 5 months ago

msridhar commented 5 months ago

Needed to work around https://github.com/javaparser/javaparser/issues/4041. Users impacted by that issue can set the language level to 11, assuming they are not using language constructs introduced after that version.

msridhar commented 5 months ago

One thought here. Since we have already released a version of the annotator with the default language level as 17, switching the default to 11 would be a breaking change. Should we stick with the default level of 17 maybe? I think that would work fine in nearly all case; as of now, we only need configurability here because of https://github.com/javaparser/javaparser/issues/4041. At Uber we could easily just configure the level to be 11.