This commit is contained in:
Oliver Gondža committed 2013-11-25 16:00:28 +01:00
1 parent 5002949506
commit 3cc7188d03
1 file changed
+6 -6
+6 -6
View File
@@ -1408,12 +1408,12 @@ public final class FilePath implements Serializable {
/**
* Returns the number of unallocated bytes in the partition of that file.
*
* @since 1.542
*/
public long getFreeDiskSpace() throws IOException, InterruptedException {
return act(new FileCallable<Long>() {
private static final long serialVersionUID = 1L;
public Long invoke(File f, VirtualChannel channel) throws IOException {
@Override public Long invoke(File f, VirtualChannel channel) throws IOException {
return f.getFreeSpace();
}
});
@@ -1421,12 +1421,12 @@ public final class FilePath implements Serializable {
/**
* Returns the total number of bytes in the partition of that file.
*
* @since 1.542
*/
public long getTotalDiskSpace() throws IOException, InterruptedException {
return act(new FileCallable<Long>() {
private static final long serialVersionUID = 1L;
public Long invoke(File f, VirtualChannel channel) throws IOException {
@Override public Long invoke(File f, VirtualChannel channel) throws IOException {
return f.getTotalSpace();
}
});
@@ -1434,12 +1434,12 @@ public final class FilePath implements Serializable {
/**
* Returns the number of usable bytes in the partition of that file.
*
* @since 1.542
*/
public long getUsableDiskSpace() throws IOException, InterruptedException {
return act(new FileCallable<Long>() {
private static final long serialVersionUID = 1L;
public Long invoke(File f, VirtualChannel channel) throws IOException {
@Override public Long invoke(File f, VirtualChannel channel) throws IOException {
return f.getUsableSpace();
}
});