Skip to content

refactor: 增强 JarUtils 的功能,减少重复代码 - #6995

Open
fishdry1000 wants to merge 5 commits into
HMCL-dev:mainfrom
fishdry1000:work/enhance-jar-utils
Open

fishdry1000 wants to merge 5 commits into
HMCL-dev:mainfrom
fishdry1000:work/enhance-jar-utils

Conversation

@fishdry1000

@fishdry1000 fishdry1000 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

把 UpdateHandler 中的工具方法提取到新建的 JavaRunner 工具类

@github-actions github-actions Bot added the 100+ label Oct 17, 2026
}

/// Restart the current application.
public static void restartSelf() throws IOException {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

为什么要把这些东西放在 JarUtils 里?我看不到有什么关联。

@fishdry1000 fishdry1000 Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

纯看名字了,想半天没理解、、才发现 JarUtils 是在 io 工具下面,便恍然大悟。我换到 platform 下面

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🤖 Static analysis found the following issues (max count 10):

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🤖 Static analysis found the following issues (max count 10):

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants