// TODO(plamenko): this check should not be necessary, but otherwise some tests fail due to
// FileHashLoader throwing NoSuchFileException which doesn't get correctly propagated.
@Override
    public Builder setPath(Path absolutePath, Path ideallyRelative) throws IOException {
      // TODO(plamenko): this check should not be necessary, but otherwise some tests fail due to
      // FileHashLoader throwing NoSuchFileException which doesn't get correctly propagated.
      if (inputSizeLimit != Long.MAX_VALUE) {
        sizeLimiter.add(fileHashLoader.getSize(absolutePath));
      }
      super.setPath(absolutePath, ideallyRelative);
      return this;
    }
@Override
public Builder setPath(Path absolutePath, Path ideallyRelative) throws IOException {
// TODO(plamenko): this check should not be necessary, but otherwise some tests fail due to
// FileHashLoader throwing NoSuchFileException which doesn't get correctly propagated.
if (inputSizeLimit != Long.MAX_VALUE) {
sizeLimiter.add(fileHashLoader.getSize(absolutePath));
@Override
public Builder setPath(Path absolutePath, Path ideallyRelative) throws IOException {
// TODO(plamenko): this check should not be necessary, but otherwise some tests fail due to
// FileHashLoader throwing NoSuchFileException which doesn't get correctly propagated.
if (inputSizeLimit != Long.MAX_VALUE) {
sizeLimiter.add(fileHashLoader.getSize(absolutePath));
}
super.setPath(absolutePath, ideallyRelative);
return this;
}
@Override
public Builder setPath(Path absolutePath, Path ideallyRelative) throws IOException {
// TODO(plamenko): this check should not be necessary, but otherwise some tests fail due to
// FileHashLoader throwing NoSuchFileException which doesn't get correctly propagated.
if (inputSizeLimit != Long.MAX_VALUE) {
sizeLimiter.add(fileHashLoader.getSize(absolutePath));
}
super.setPath(absolutePath, ideallyRelative);
return this;
}