Skip to content

Conversation

cppwfs
Copy link
Contributor

@cppwfs cppwfs commented Sep 5, 2025

  • ConcurrentMetadataStore.java: Added @Nullable annotation to putIfAbsent method return type for better null safety.
  • MetadataStore.java: Added @nullable annotations to get and remove method return types to indicate they can return null.
  • PropertiesPersistingMetadataStore.java: Removed explicit null checks with Assert.notNull calls and added @Nullable annotations to method signatures while simplifying saveMetadata logic.
  • SimpleMetadataStore.java: Added @Nullable annotations to get, remove, and putIfAbsent method return types for consistency with interface.
  • MetadataStoreSelector.java: Added Assert.state calls to validate that keyStrategy and valueStrategy do not return null values.

* ConcurrentMetadataStore.java: Added @nullable annotation to putIfAbsent method return type for better null safety.
* MetadataStore.java: Added @nullable annotations to get and remove method return types to indicate they can return null.
* PropertiesPersistingMetadataStore.java: Removed explicit null checks with Assert.notNull calls and added @nullable annotations to method signatures while simplifying saveMetadata logic.
* SimpleMetadataStore.java: Added @nullable annotations to get, remove, and putIfAbsent method return types for consistency with interface.
* MetadataStoreSelector.java: Added Assert.state calls to validate that keyStrategy and valueStrategy do not return null values.
@cppwfs cppwfs requested review from tzolov and artembilan and removed request for tzolov September 5, 2025 11:25
@artembilan artembilan added this to the 7.0.0-M3 milestone Sep 5, 2025
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Nice, smooth and looks easy.

I guess since the build is green, all the other MetadataStore implementations in the project have Nullability already addressed 😄 .

Thank you!

@artembilan artembilan merged commit 6224ef9 into spring-projects:main Sep 5, 2025
3 checks passed
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.

2 participants