Use Files.newInputStream(path) instead of new FileInputStream(path.toFile()) and Files.newOutputStream(path) instead of new FileOutputStream(path.toFile()).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/383
**Author:** [@odenix](https://github.com/odenix)
**Created:** 4/2/2024
**Status:** ✅ Merged
**Merged:** 4/5/2024
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `file-api`
---
### 📝 Commits (1)
- [`4cc6fc4`](https://github.com/apple/pkl/commit/4cc6fc4bbfc71817f3c2cc3bb3e358607cdb928d) Use Files.newInputStream()/newOutputStream() where appropriate
### 📊 Changes
**4 files changed** (+5 additions, -10 deletions)
<details>
<summary>View changed files</summary>
📝 `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)
</details>
### 📄 Description
Use `Files.newInputStream(path)` instead of `new FileInputStream(path.toFile())` and `Files.newOutputStream(path)` instead of `new FileOutputStream(path.toFile())`.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.