Enum.toString() is annotated as @NotNull in 2018.2 EAP

已回答

Enum.toString() is auto-annotated as @NotNull in 2018.2 EAP. The @NotNull/@Nullable inspections now reports that all overriding methods should be explicitly annotated with @NotNull. Is this intentional? I don't see any contract that Enum.toString() should not return null.

0

请先登录再写评论。