diff --git a/transport/src/main/java/io/netty/channel/DefaultFileRegion.java b/transport/src/main/java/io/netty/channel/DefaultFileRegion.java index 4607b0e74d..2ccb485860 100644 --- a/transport/src/main/java/io/netty/channel/DefaultFileRegion.java +++ b/transport/src/main/java/io/netty/channel/DefaultFileRegion.java @@ -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; }