Deprecate PosixException in favor of IOException (#6345)

This commit is contained in:
Basil Crow authored and GitHub committed 2022-03-09 12:07:47 -08:00
1 parent f792e6501a
commit b633ba5189
5 files changed
+10 -14

No files matched your search

+1 -2
View File
@@ -42,7 +42,6 @@ import hudson.model.AbstractProject;
import hudson.model.Computer;
import hudson.model.Item;
import hudson.model.TaskListener;
import hudson.os.PosixException;
import hudson.remoting.Callable;
import hudson.remoting.Channel;
import hudson.remoting.DelegatingCallable;
@@ -1985,7 +1984,7 @@ public final class FilePath implements SerializableOnlyOverRemoting {
* @since 1.311
* @see #chmod(int)
*/
public int mode() throws IOException, InterruptedException, PosixException {
public int mode() throws IOException, InterruptedException {
if (!isUnix()) return -1;
return act(new Mode());
}