uber/NullAway

Disallow writing `@Initializer` on constructors

Fechada

#540 aberto em 6 de jan. de 2022

 (0 comentário) (0 reação) (0 responsável)Java (288 forks)batch import
good first issue

Métricas do repositório

Stars
 (3.462 estrelas)
Métricas de merge de PR
 (Mesclagem média 3d 23h) (14 fundiu PRs em 30d)

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.

Guia do colaborador