uber/NullAway

Disallow writing `@Initializer` on constructors

Geschlossen

#540 geöffnet am 06.01.2022

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (288 Forks)batch import
good first issue

Repository-Metriken

Stars
 (3.462 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 3T 23h) (14 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide