packageurl-java
packageurl-java copied to clipboard
fix: Fix some issues with `StringUtilBenchmark`
- Make
Randomstatic even though in practice it should only be created once already (fixes SpotBugs warning) - Initialize fields to empty to prevent warning "
@NullMarkedfields must be initialized" - Iterate over
decodedDatadirectly instead of using theDATA_COUNTconstant 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 names