Commit 0fdf579
committed
style(api): use Arrays.asList for typed adapter whitelist
Replace the raw Class[] literal (which the compiler cannot type-check
and emits an unchecked-conversion warning for) with Arrays.asList so the
element type Class<? extends IRateLimiter> is inferred explicitly. No
behavior change; ALLOWED_ADAPTERS keeps the same four entries.1 parent a437574 commit 0fdf579
1 file changed
Lines changed: 6 additions & 4 deletions
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments