Skip to content

Remove AtomicReference from StatsdMeterRegistryTest #6311

@jonatan-ivanov

Description

@jonatan-ivanov

It fails the NullAway checks:

> Task :micrometer-registry-statsd:compileTestJava
/home/circleci/micrometer/implementations/micrometer-registry-statsd/src/test/java/io/micrometer/statsd/StatsdMeterRegistryTest.java:145: error: [NullAway] dereferenced expression registryReference.get() is @Nullable
        registryReference.get().close();
                               ^
    (see http://t.uber.com/nullaway )

(see: https://app.circleci.com/pipelines/github/micrometer-metrics/micrometer/9418/workflows/c7791701-8a55-4a03-8f71-bf709942ade5/jobs/49156)

Metadata

Metadata

Assignees

No one assigned

    Labels

    polishA general improvement (naming things, fixing minor issues, etc.)registry: statsdA StatsD Registry related issuetype: taskA general task

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions