Skip to content

Use uppercase for classpath-related static final field names #35525

Closed

Description

@sdeleuze

In order to ensure consistency across the codebase and communicate properly that static final fields of type String or Class<?> are inlinable constants as defined in the Spring code style, this issue intends to rename such fields named like fooPresent to FOO_PRESENT.

Those fields are not part of Spring public API, except org.springframework.web.servlet.support.RequestContext#jstPresent which will be renamed to JSTL_PRESENT as part of Spring Framework 7 new major.

Activity

  1. added this to the 7.0.0-RC1 milestone on Sep 22, 2025
  2. self-assigned this
    on Sep 22, 2025
  3. added a commit that references this issue on Sep 22, 2025
    7635ac3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址