uber/NullAway

Disallow writing `@Initializer` on constructors

已關閉

#540 建立於 2022年1月6日

 (0 則留言) (0 個反應) (0 位負責人)Java (288 個分叉)batch import
good first issue

倉庫指標

星標
 (3,462 顆星)
PR 合併指標
 (平均合併 3天 23小時) (30 天內合併 14 個 PR)

描述

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.

貢獻者指南