micrometer-metrics/micrometer

Remove @NullUnmarked workaround for NullAway bug on generic types

Aberta

#6.404 aberto em 14 de jun. de 2025

 (4 comentários) (0 reação) (0 responsável)Java (1.135 forks)batch import
help wantednullabilitypolishtype: task

Métricas do repositório

Stars
 (4.881 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador