Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Misc. cleanup#6

Open
PaintNinja wants to merge 6 commits into
MinecraftForge:master from
PaintNinja:misc-cleanup-1
Open

Misc. cleanup #6
PaintNinja wants to merge 6 commits into
MinecraftForge:master from
PaintNinja:misc-cleanup-1

Conversation

@PaintNinja

@PaintNinja PaintNinja commented Mar 22, 2025

Copy link
Copy Markdown
Contributor

A collection of small non-breaking changes.

  • More statics and finals
  • Close directory streams after use
  • Use smaller collections in more cases


try {
return Files.list(services)
try (var servicesDirStream = Files.list(services)) {

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.

I thought this had issues with Zip file systems, calling close anywhere on them caused the entire thing to shut down.

Copy link
Copy Markdown
Member

If tests are passing for this, I think this is good to be merged. Keep in mind Lex's comment regarding issues with zip file systems.

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

Reviewers

@LexManos LexManos LexManos approved these changes
+1 more reviewer
@Jonathing Jonathing Jonathing approved these changes
Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /