Skip to content

Conversation

nicklasl
Copy link
Member

@nicklasl nicklasl commented Oct 9, 2025

Summary

  • Added @Nonnull annotations to public API interfaces (Contextual, EventSender, FlagEvaluator)
  • Added @Nonnull annotations to public records and interfaces (ApiSecret, AccountStateProvider, MaterializationRepository, MaterializationInfo)
  • Added @Nonnull annotations to provider constructors (OpenFeatureLocalResolveProvider, ConfidenceFeatureProvider)

This improves Kotlin interoperability by ensuring non-nullable types are properly recognized instead of being treated as platform types.

Test plan

  • Verify existing tests pass
  • Test Kotlin consumer can properly recognize non-nullable types

🤖 Generated with Claude Code

nicklasl and others added 4 commits October 9, 2025 14:04
Add javax.annotation.Nonnull annotations to public API methods, constructors, and parameters to improve Kotlin interoperability. This ensures Kotlin consumers can properly recognize non-nullable types instead of platform types.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Applied mvn fmt:format to ensure code style compliance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
javax.annotation.Nonnull doesn't support TYPE_USE, so it can't be applied to type arguments. Removed @nonnull from Map type arguments in MaterializationRepository to fix compilation error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Added explicit jsr305 dependency to openfeature-provider and openfeature-provider-local modules to fix Maven dependency analyzer warnings about undeclared dependencies.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@nicklasl nicklasl marked this pull request as ready for review October 9, 2025 16:40
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