apple / pkl-lsp

Apache License 2.0
24 stars 6 forks source link

Switch files to NIO API #7

Closed bioball closed 1 month ago

bioball commented 1 month ago

java.io.File is a legacy API; it's better to use java.nio.file.Path whenever possible.

This doesn't change JarFile because that one isn't used and perhaps should be removed (Path can represent files inside a jar).

This is built on top of https://github.com/apple/pkl-lsp/pull/5 and https://github.com/apple/pkl-lsp/pull/6. Only the last commit should be reviewed.