uber/NullAway

Disallow writing `@Initializer` on constructors

クローズ

#540 opened on 2022/01/06

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Java (288 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (3,462 個のスター)
PR merge metrics
 (平均マージ 3d 23h) (30d で 14 merged PRs)

説明

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.

コントリビューターガイド