Commit de755c4
committed
fix: Fix some issues with
* Make `Random` static even though in practice it should only be
created once already (fixes SpotBugs warning)
* Initialize fields to empty to prevent warning "`@NullMarked` fields
must be initialized"
* Iterate over `decodedData` directly instead of using the `DATA_COUNT`
constant even though in practice these should always have the same
length
* Fill data fields directly instead of using a local
variables/parameters with the same namesStringUtilBenchmark
1 parent 86bebd8 commit de755c4
File tree
1 file changed
+12
-9
lines changed- src/test/java/com/github/packageurl/internal
1 file changed
+12
-9
lines changedLines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
66 | | - | |
67 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | | - | |
77 | | - | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
82 | | - | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | | - | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | | - | |
109 | | - | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
0 commit comments