micrometer-metrics/micrometer

Remove @NullUnmarked workaround for NullAway bug on generic types

Open

#6,404 建立於 2025年6月14日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Java (4,220 star) (935 fork)batch import
help wantednullabilitypolishtype: task

描述

It seems <T extends @Nullable Object> does not work well in some situations, see https://github.com/uber/NullAway/issues/1075.

Because of this bug in NullAway, we need to use @NullUnmarked and "invert" the contract unnecessarily, see here and here.

貢獻者指南

Remove @NullUnmarked workaround for NullAway bug on generic types · micrometer-metrics/micrometer#6404 | Good First Issue