mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #383] [MERGED] Use Files.newInputStream()/newOutputStream() where appropriate #529
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/383
Author: @odenix
Created: 4/2/2024
Status: ✅ Merged
Merged: 4/5/2024
Merged by: @bioball
Base:
main← Head:file-api📝 Commits (1)
4cc6fc4Use Files.newInputStream()/newOutputStream() where appropriate📊 Changes
4 files changed (+5 additions, -10 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/module/ModulePathResolver.java(+1 -2)📝
pkl-core/src/main/java/org/pkl/core/packages/PackageResolvers.java(+1 -2)📝
pkl-core/src/main/java/org/pkl/core/project/ProjectPackager.java(+2 -4)📝
pkl-core/src/main/java/org/pkl/core/util/IoUtils.java(+1 -2)📄 Description
Use
Files.newInputStream(path)instead ofnew FileInputStream(path.toFile())andFiles.newOutputStream(path)instead ofnew FileOutputStream(path.toFile()).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.