Skip to content

Commit

Permalink
chore: bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0
Browse files Browse the repository at this point in the history
Bumps org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-lang3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and php-coder committed Nov 25, 2024
1 parent 86f4f58 commit 9980264
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
<clean.plugin.version>3.0.0</clean.plugin.version>

<!-- Redefine default value from spring-boot-dependencies -->
<commons-lang3.version>3.14.0</commons-lang3.version>
<commons-lang3.version>3.17.0</commons-lang3.version>

<commons.text.version>1.11.0</commons.text.version>
<compiler.plugin.version>3.13.0</compiler.plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public long countCreatedSince(Date date) {
**/
private static String generateActivationKey() {
int actKeyLength = AccountValidation.ACT_KEY_LENGTH;
return RandomStringUtils.randomAlphanumeric(actKeyLength).toLowerCase(Locale.ENGLISH);
return RandomStringUtils.secure().nextAlphanumeric(actKeyLength).toLowerCase(Locale.ENGLISH);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public byte[] createPreview(byte[] image) {

log.debug(
"Image preview has been generated in {} msecs: {} -> {} bytes",
timer.getTime(),
timer.getDuration().toMillis(),
// let's hope that it won't throw IllegalStateException :)
ArrayUtils.getLength(image),
ArrayUtils.getLength(result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public DownloadResult download(String url) {
log.debug(
"{} bytes have been downloaded in {} msecs",
result.getData().length,
timer.getTime()
timer.getDuration().toMillis()
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public SeriesExtractedInfo extract(String pageUrl, RawParsedDataDto data) {
SeriesExtractedInfo result = extractorService.extract(pageUrl, data);
timer.stop();

log.debug("Series info was extracted from raw data in {} msecs", timer.getTime());
log.debug("Series info was extracted from raw data in {} msecs", timer.getDuration().toMillis());

return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SeriesInfo parse(String htmlPage) {
log.debug(
"HTML page with {} characters has been parsed in {} msecs",
StringUtils.length(htmlPage),
timer.getTime()
timer.getDuration().toMillis()
);
}

Expand Down

0 comments on commit 9980264

Please sign in to comment.