Conversation
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| private final Set<CashuMint> mints; | ||
| private final Map<String, Set<Relay>> relays; |
There was a problem hiding this comment.
Preserve CashuWallet mutators for mints/relays
Making the mints and relays fields final removes the Lombok-generated setters (setMints, setRelays). Several call sites—including NIP60Test and the example code—still invoke those setters to initialise a wallet, so the project no longer compiles and existing consumers cannot populate these collections after construction. Either keep the fields mutable or provide replacement mutator APIs before finalising them.
Useful? React with 👍 / 👎.
Summary
Tighten immutability across the codebase to address Qodana “Field may be final” warnings and stabilize unit tests on JDK 21 by configuring Mockito to use the subclass mock-maker. Also
bumps project version to 0.6.2.
Related issue: #____
What changed?
Suggested review starting points (if scanning diffs):
BREAKING
None expected. All finalizations are limited to fields only set via constructors or default initializers. Where a test relied on mutation, the field was left non-final or a compatible
constructor was added (e.g., NIP46.Request).
Review focus
Checklist
Build and tests
Why now?