uber/NullAway

Disallow writing `@Initializer` on constructors

Chiusa

#540 aperta il 6 gen 2022

 (0 commenti) (0 reazioni) (0 assegnatari)Java (288 fork)batch import
good first issue

Metriche repository

Star
 (3462 stelle)
Metriche merge PR
 (Merge medio 3g 23h) (14 PR mergiate in 30 g)

Descrizione

If a constructor is annotated with @Initializer, NullAway currently treats the constructor as if it were an initializer method that runs after any constructor, which clearly doesn't make sense. Instead, NullAway should report an error, as this is an invalid use of @Initializer.

Guida contributor