Find overridable method calls in constructors

Proprietary

Marks a call from a constructor to a method that a subclass can override. The override runs before the subclass constructor, so it sees that subclass's fields unset, typically causing a NullPointerException. A class that can only be extended in its own file is reported only when that file overrides the method. Skips test sources.

io.moderne.staticanalysis.FindOverridableCallInConstructor
mod run . --recipe=io.moderne.staticanalysis.FindOverridableCallInConstructor

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.