Skip to content

Conversation

@quaff
Copy link
Contributor

@quaff quaff commented Oct 11, 2025

No description provided.

* @param metadata Document metadata.
* @return Returns the filtered by configured mode metadata.
*/
protected Map<String, Object> metadataFilter(Map<String, Object> metadata, MetadataMode metadataMode) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

protected modifier is meaningless since the class is final.

private Map<String, Object> metadataFilter(Map<String, Object> metadata, MetadataMode metadataMode) {

if (metadataMode == MetadataMode.ALL) {
return new HashMap<>(metadata);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating new HashMap is unnecessary here

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
@ericbottard ericbottard merged commit 3092efa into spring-projects:main Oct 13, 2025
2 checks passed
@ilayaperumalg ilayaperumalg added this to the 1.1.0.M4 milestone Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants