Skip to content

Commit

Permalink
Add toString() method
Browse files Browse the repository at this point in the history
  • Loading branch information
findinpath committed Apr 14, 2023
1 parent 87be6d0 commit 1f9cddf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ public boolean exists()
throw new UncheckedIOException("Failed to check existence for file: " + location(), e);
}
}

@Override
public String toString()
{
return inputFile.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public InputFile toInputFile()
return new ForwardingInputFile(fileSystem.newInputFile(outputFile.location()));
}

@Override
public String toString()
{
return outputFile.toString();
}

private static class CountingPositionOutputStream
extends PositionOutputStream
{
Expand Down

0 comments on commit 1f9cddf

Please sign in to comment.