Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #1712

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading