micrometer-metrics/micrometer

Remove @NullUnmarked workaround for NullAway bug on generic types

Open

#6 404 ouverte le 14 juin 2025

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)Java (4 220 stars) (935 forks)batch import
help wantednullabilitypolishtype: task

Description

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.

Guide contributeur