Skip to content

WW-5840 docs(core): describe original file name accessors functionally - #2200

Merged
lukaszlenart merged 1 commit into
mainfrom
WW-5840-original-name-javadoc
Dec 5, 2026
Merged

lukaszlenart merged 1 commit into
mainfrom
WW-5840-original-name-javadoc

Conversation

@lukaszlenart

Copy link
Copy Markdown
Member

Fixes WW-5840

Follow-up to #2116. It rewrites the Javadoc of UploadedFile#getOriginalName() and #getOriginalBaseName(), and the comment in the ActionFileUploadInterceptor example, so each one states what the method returns:

  • getOriginalName(): the client's file name, unmodified, which may include a directory part.
  • getOriginalBaseName(): the last path segment. It now lists the cases callers must still handle, including a drive prefix such as C:, which FilenameUtils.getName keeps because it splits only on / and \.

Javadoc and comments only; no behaviour change. core compiles.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

@lukaszlenart
lukaszlenart marked this pull request as ready for review December 5, 2026 17:12
@lukaszlenart
lukaszlenart merged commit 862d7f5 into main Dec 5, 2026
8 checks passed
@lukaszlenart
lukaszlenart deleted the WW-5840-original-name-javadoc branch December 5, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant