Commit 9c9554f
chore: fix trivial SonarQube code smells (S1905, S1118)
Remove three unnecessary (T[]) casts in CollectionPredicates.Default
(java:S1905, lines 88/98/108) — the varargs parameters are already typed
as T[] so the cast is redundant.
Add private constructor to Throws utility class and change abstract to
final (java:S1118, line 3) — prevents implicit public constructor and
accidental subclassing while keeping the static API intact.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 46a5a1b commit 9c9554f
2 files changed
Lines changed: 6 additions & 4 deletions
File tree
- src/main/java/com/github/zrdj/java/predicates
- collections
- helper
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
0 commit comments