micrometer-metrics/micrometer

Remove @NullUnmarked workaround for NullAway bug on generic types

Open

#6404 aperta il 14 giu 2025

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Java (935 fork)batch import
help wantednullabilitypolishtype: task

Metriche repository

Star
 (4220 star)
Metriche merge PR
 (Merge medio 1g 21h) (100 PR mergiate in 30 g)

Descrizione

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.

Guida contributor