Skip to content

Naming convention for static final variables with mutable internal state #34872

@j-haj

Description

@j-haj

How should we name static final variables with mutable internal state? Does it matter if the internal state is visible to the user?

As an example, we have the names DEPRECATION_LOGGER and deprecationLogger throughout the codebase. We should pick a naming convention, document it, and stick to it throughout the codebase. This topic has cropped up in several discussions (e.g., #34279).

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Core/Infra/CoreCore issues without another label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions