uber/NullAway

Disallow writing `@Initializer` on constructors

Fermée

#540 ouverte le 6 janv. 2022

 (0 commentaire) (0 réaction) (0 personne assignée)Java (288 forks)batch import
good first issue

Métriques du dépôt

Stars
 (3 462 étoiles)
Métriques de merge PR
 (Merge moyen 3j 23h) (14 PRs mergées en 30 j)

Description

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.

Guide contributeur