Skip to content

HMCL ProcessListener 游戏退出日志行开头添加时间#6314

Merged
Glavo merged 2 commits into
HMCL-dev:mainfrom
CiiLu:qwqwqwq
Jul 5, 2026
Merged

HMCL ProcessListener 游戏退出日志行开头添加时间#6314
Glavo merged 2 commits into
HMCL-dev:mainfrom
CiiLu:qwqwqwq

Conversation

@CiiLu

@CiiLu CiiLu commented Jul 5, 2026

Copy link
Copy Markdown
Contributor
image

@Glavo

Glavo commented Jul 5, 2026

Copy link
Copy Markdown
Member

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request replaces wildcard imports with specific imports in LauncherHelper.java and Logger.java, changes the visibility of Logger.TIME_FORMATTER to public, and prepends a formatted timestamp to the Minecraft exit log. The feedback suggests simplifying the timestamp generation in LauncherHelper by using Instant.now() instead of Instant.ofEpochMilli(System.currentTimeMillis()) for cleaner and more modern Java code.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@Glavo

Glavo commented Jul 5, 2026

Copy link
Copy Markdown
Member

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request replaces wildcard imports with specific imports in LauncherHelper.java and Logger.java. It also changes the visibility of TIME_FORMATTER in Logger.java to public and uses it to prepend a timestamp to the Minecraft exit log in LauncherHelper.java. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Glavo Glavo merged commit ad98a5a into HMCL-dev:main Jul 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants