micrometer-metrics/micrometer

Remove @NullUnmarked workaround for NullAway bug on generic types

Offen

#6.404 geöffnet am 14.06.2025

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (1.133 Forks)batch import
help wantednullabilitypolishtype: task

Repository-Metriken

Stars
 (4.882 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 21h) (100 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide