Commit ed0fd8e
authored
fix: several bug-prone behaviors identified by higher
* test: increase spotbugs rank
let's see how high we can increase the rank without too much pain and
suffering...
* fix: 5
* fix: 6
* fix: thread-safe date formatter
* fix: repeated conditional
* fix: disable bug-prone `ClasUtilsFile.getFileList(String,String,String)`, since unused
* fix: Non-virtual method call in constructor passes null for...
...non-null parameter of another constructor
(`NP_NULL_PARAM_DEREF_NONVIRTUAL`)
* fix: `setMass` `mass` parameter is dead upon entry but overwritten...
spotbugs rank-7 bug `IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN`
* fix: undeclared dependency
* fix: fix or suppress some rank-8 bugs
* fix: synchronized singleton getters
* fix: suppress searlizable singletons
* fix: remove public ctors from `SwapManager` singleton
* fix: suppress static method hiding of `DetectorRepsonse.readHipoEvent`
better than breaking the API...
* fix: go back to rank 7
* fix: remove commented out code
* fix: actuallly back to rank 7spotbugs ranks (#871)1 parent e099a1b commit ed0fd8e
File tree
20 files changed
+139
-148
lines changed- common-tools
- clas-detector/src/main/java/org/jlab/detector/swaps
- clas-geometry/src/main/java/org/jlab/detector/geant4
- clas-utils/src/main/java/org/jlab/utils
- benchmark
- system
- cnuphys
- magfield/src/main/java/cnuphys/magfield
- converter
- splot/src/main/java/cnuphys/splot/plot
- swimmer/src/main/java/cnuphys/lund
- libexec
- reconstruction
- dc/src/main/java/org/jlab/rec/dc/track/fit
- fmt/src/main/java/org/jlab/rec/fmt/track/fit
- ltcc
- src/main/java/org/jlab/service/ltcc
- swaps/src/main/java/org/jlab/service/swaps
20 files changed
+139
-148
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 283 | + | |
| 284 | + | |
288 | 285 | | |
289 | 286 | | |
290 | 287 | | |
| |||
Lines changed: 8 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 68 | + | |
96 | 69 | | |
97 | 70 | | |
98 | 71 | | |
| |||
265 | 238 | | |
266 | 239 | | |
267 | 240 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 241 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
276 | 249 | | |
277 | 250 | | |
278 | 251 | | |
| |||
Lines changed: 3 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 1 | | |
7 | 2 | | |
8 | | - | |
9 | | - | |
10 | 3 | | |
11 | 4 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 5 | | |
16 | 6 | | |
17 | 7 | | |
| |||
45 | 35 | | |
46 | 36 | | |
47 | 37 | | |
48 | | - | |
| 38 | + | |
49 | 39 | | |
50 | | - | |
51 | | - | |
| 40 | + | |
52 | 41 | | |
53 | 42 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 43 | | |
58 | 44 | | |
59 | 45 | | |
| |||
278 | 264 | | |
279 | 265 | | |
280 | 266 | | |
281 | | - | |
| 267 | + | |
282 | 268 | | |
283 | 269 | | |
284 | 270 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 135 | + | |
154 | 136 | | |
155 | 137 | | |
156 | 138 | | |
| |||
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
1660 | 1656 | | |
1661 | 1657 | | |
1662 | 1658 | | |
1663 | | - | |
| 1659 | + | |
1664 | 1660 | | |
1665 | 1661 | | |
1666 | 1662 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
853 | | - | |
| 853 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments