Skip to content

Conversation

jaehwan02
Copy link
Contributor

Rename DEFAULT_ANT_PATH_REQUEST_MATCHER to DEFAULT_PATH_REQUEST_MATCHER to reflect PathPatternRequestMatcher usage instead of legacy Ant pattern terminology.

Description

This PR improves code clarity by fixing a misleading variable name in UsernamePasswordAuthenticationFilter and removing outdated terminology.

Problem

The current variable DEFAULT_ANT_PATH_REQUEST_MATCHER incorrectly suggests that Ant pattern matching is being used, when the actual implementation uses PathPatternRequestMatcher. This naming inconsistency can confuse developers reading the code.

Solution

Rename the variable to DEFAULT_PATH_REQUEST_MATCHER to:

  • Accurately reflect the PathPatternRequestMatcher implementation
  • Remove misleading references to legacy Ant pattern terminology
  • Improve code readability and maintainability

Changes

  • Rename DEFAULT_ANT_PATH_REQUEST_MATCHER to DEFAULT_PATH_REQUEST_MATCHER
  • Update constructor references to use the new variable name
  • No functional changes - purely a documentation/naming improvement

Rename DEFAULT_ANT_PATH_REQUEST_MATCHER to DEFAULT_PATH_REQUEST_MATCHER
to reflect PathPatternRequestMatcher usage instead of legacy Ant
pattern terminology.

Signed-off-by: Jaehwan Lee <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 16, 2025
@rwinch rwinch self-assigned this Aug 20, 2025
@rwinch rwinch added in: build An issue in the build in: web An issue in web modules (web, webmvc) type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 20, 2025
@rwinch rwinch added this to the 7.0.0-M3 milestone Aug 20, 2025
@rwinch rwinch enabled auto-merge (rebase) August 20, 2025 03:09
@rwinch
Copy link
Member

rwinch commented Aug 20, 2025

Thanks for the PR! This will be merged into main when the build passes.

@rwinch rwinch merged commit 806297d into spring-projects:main Aug 20, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build An issue in the build in: web An issue in web modules (web, webmvc) type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants