Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -5393,7 +5393,7 @@ private List<OfflineLink> getModulesLinks() throws MavenReportException {
} catch (MavenInvocationException e) {
logError("MavenInvocationException: " + e.getMessage(), e);

String invokerLogContent = JavadocUtil.readFile(invokerLogFile, null /* platform encoding */);
String invokerLogContent = JavadocUtil.readFile(invokerLogFile, "UTF-8");
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using StandardCharsets.UTF_8 instead of the string literal "UTF-8" to avoid potential typos and improve type safety.

Suggested change
String invokerLogContent = JavadocUtil.readFile(invokerLogFile, "UTF-8");
String invokerLogContent = JavadocUtil.readFile(invokerLogFile, StandardCharsets.UTF_8.name());

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tend to agree with the bot here.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are other places like that


// TODO: Why are we only interested in cases where the JVM won't start?
// [MJAVADOC-275][jdcasey] I changed the logic here to only throw an error WHEN
Expand Down
Loading