Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an exception to unsupported provider methods instead of no-op'i… #12977

Merged
merged 1 commit into from
Jul 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,13 @@ public Path getPath(URI uri) {
}

/**
* @throws UnsupportedOperationException Operation is not supported.
* {@inheritDoc}
*/
@Override
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> set,
FileAttribute<?>... fileAttributes) throws IOException {
return null;
throw new UnsupportedOperationException();
}

/**
Expand Down Expand Up @@ -611,19 +612,21 @@ public void copy(Path source, Path destination, CopyOption... copyOptions) throw
}*/

/**
* @throws UnsupportedOperationException Operation is not supported.
* {@inheritDoc}
*/
@Override
public void move(Path path, Path path1, CopyOption... copyOptions) throws IOException {

throw new UnsupportedOperationException();
}

/**
* @throws UnsupportedOperationException Operation is not supported.
* {@inheritDoc}
*/
@Override
public boolean isSameFile(Path path, Path path1) throws IOException {
return false;
throw new UnsupportedOperationException();
}

/**
Expand All @@ -635,19 +638,21 @@ public boolean isHidden(Path path) throws IOException {
}

/**
* @throws UnsupportedOperationException Operation is not supported.
* {@inheritDoc}
*/
@Override
public FileStore getFileStore(Path path) throws IOException {
return null;
throw new UnsupportedOperationException();
}

/**
* @throws UnsupportedOperationException Operation is not supported.
* {@inheritDoc}
*/
@Override
public void checkAccess(Path path, AccessMode... accessModes) throws IOException {

throw new UnsupportedOperationException();
}

/**
Expand Down