Skip to content

使 NetworkUtils.doGet 支持更多 URI scheme#4768

Merged
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:do-get
Nov 8, 2025
Merged

使 NetworkUtils.doGet 支持更多 URI scheme#4768
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:do-get

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented Nov 8, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 8, 2025 12:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the NetworkUtils class to modernize Java syntax and improve the doGet(URI) method's handling of non-HTTP URI schemes.

  • Adopts pattern matching for instanceof checks (Java 14+ feature)
  • Changes doGet(URI) to handle both HTTP and non-HTTP connections properly

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HMCL-dev HMCL-dev deleted a comment from Copilot AI Nov 8, 2025
@Glavo Glavo merged commit 81b6152 into HMCL-dev:main Nov 8, 2025
8 checks passed
@Glavo Glavo deleted the do-get branch November 8, 2025 13:51
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