Skip to content

[release/3.6] 在 CacheRepository.ETagItem 中添加 expires 字段#4662

Merged
Glavo merged 2 commits intoHMCL-dev:release/3.6from
Glavo:backport/3.6/cache
Oct 13, 2025
Merged

[release/3.6] 在 CacheRepository.ETagItem 中添加 expires 字段#4662
Glavo merged 2 commits intoHMCL-dev:release/3.6from
Glavo:backport/3.6/cache

Conversation

@Glavo
Copy link
Member

@Glavo Glavo commented Oct 12, 2025

No description provided.

@Glavo Glavo added the backport label Oct 12, 2025
@Glavo Glavo requested a review from Copilot October 12, 2025 13:27
Copy link
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 adds an expires field to the CacheRepository.ETagItem class as a compatibility measure. The field is intended for future use in HMCL 3.7.x but is backported to 3.6.x to prevent breaking changes to the etag.json file format when upgrading between versions.

  • Added expires field to ETagItem class with default value of 0L
  • Updated constructor calls and method signatures to accommodate the new field
  • Modified equals() and hashCode() methods to include the new field

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Glavo Glavo requested a review from Copilot October 12, 2025 13:28
Copy link
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Glavo Glavo merged commit 554503f into HMCL-dev:release/3.6 Oct 13, 2025
2 checks passed
@Glavo Glavo deleted the backport/3.6/cache branch October 13, 2025 07:12
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