ucr-riple / NullAwayAnnotator

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

Record declaration not recognized by Injector #225

Closed nimakarimipour closed 8 months ago

nimakarimipour commented 8 months ago

Describe the bug Record declaration introduced in java 17 is not recognized in Annotator and it's members cannot be parsed.

To Reproduce Run injector on the class below (from micronaut)

record StaticServiceDefinitions(Map<String, Set<String>> serviceTypeMap) {
   StaticServiceDefinitions {
      if (serviceTypeMap == null) {
         serviceTypeMap = new HashMap<>();
      }
   }
}