Fix typo missed in f46cfbc590

This commit is contained in:
Norman Maurer 2016-04-05 15:32:54 +02:00
parent f46cfbc590
commit 7fb475a223

View File

@ -38,7 +38,7 @@ public class DefaultFileRegion extends AbstractReferenceCounted implements FileR
private final File f;
private final long position;
private final long count;
private long transfered;
private long transferred;
private FileChannel file;
/**
@ -117,12 +117,12 @@ public class DefaultFileRegion extends AbstractReferenceCounted implements FileR
@Deprecated
@Override
public long transfered() {
return transfered;
return transferred;
}
@Override
public long transferred() {
return transfered;
return transferred;
}
@Override
@ -144,7 +144,7 @@ public class DefaultFileRegion extends AbstractReferenceCounted implements FileR
long written = file.transferTo(this.position + position, count, target);
if (written > 0) {
transfered += written;
transferred += written;
}
return written;
}