Commit b467462
refactor: migrate Bucket4j to lambda-based builder API
Replace deprecated Bandwidth.classic() with new builder pattern:
- Remove Bandwidth and Refill imports (no longer needed)
- Use lambda-based .addLimit() with fluent API
- Change: Bandwidth.classic(capacity, Refill.greedy(...))
- To: .addLimit(limit -> limit.capacity(...).refillGreedy(...))
This eliminates the last compilation warning and aligns with
Bucket4j 8.10.1+ recommended API (deprecated since 8.5.0).
All 550 tests passing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f0bcc6a commit b467462
File tree
1 file changed
+4
-7
lines changed- src/main/java/com/jhf/coupon/security
1 file changed
+4
-7
lines changedLines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 129 | | |
136 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
137 | 134 | | |
138 | 135 | | |
139 | 136 | | |
| |||
0 commit comments