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