aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java
diff options
context:
space:
mode:
authorGravatar tomlu <tomlu@google.com>2017-12-14 12:51:10 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-14 12:53:23 -0800
commit82e68b75304438c96ff878a0c2b8d18b42002486 (patch)
tree0984b21536f07a5ab3a8ae62235201c58afb431b /src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java
parentb5fd7611017f95e1303aa1f2c4a0a2962f2cc4eb (diff)
Make FileSystem operate on LocalPath instead of Path.
PiperOrigin-RevId: 179082062
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java
index ef1946bb8e..8b9cd5376a 100644
--- a/src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java
+++ b/src/main/java/com/google/devtools/build/lib/vfs/AbstractFileSystem.java
@@ -37,7 +37,7 @@ abstract class AbstractFileSystem extends FileSystem {
}
@Override
- protected InputStream getInputStream(Path path) throws IOException {
+ protected InputStream getInputStream(LocalPath path) throws IOException {
// This loop is a workaround for an apparent bug in FileInputStream.open, which delegates
// ultimately to JVM_Open in the Hotspot JVM. This call is not EINTR-safe, so we must do the
// retry here.
@@ -55,7 +55,7 @@ abstract class AbstractFileSystem extends FileSystem {
}
/** Returns either normal or profiled FileInputStream. */
- private InputStream createFileInputStream(Path path) throws FileNotFoundException {
+ private InputStream createFileInputStream(LocalPath path) throws FileNotFoundException {
final String name = path.toString();
if (profiler.isActive()
&& (profiler.isProfiling(ProfilerTask.VFS_READ)
@@ -77,7 +77,7 @@ abstract class AbstractFileSystem extends FileSystem {
* Returns either normal or profiled FileOutputStream. Should be used by subclasses to create
* default OutputStream instance.
*/
- protected OutputStream createFileOutputStream(Path path, boolean append)
+ protected OutputStream createFileOutputStream(LocalPath path, boolean append)
throws FileNotFoundException {
final String name = path.toString();
if (profiler.isActive()
@@ -95,7 +95,7 @@ abstract class AbstractFileSystem extends FileSystem {
}
@Override
- protected OutputStream getOutputStream(Path path, boolean append) throws IOException {
+ protected OutputStream getOutputStream(LocalPath path, boolean append) throws IOException {
synchronized (path) {
try {
return createFileOutputStream(path, append);