Remove unnecessary use of volatile in ChunkedInput implementations. See #389

This commit is contained in:
norman 2012-06-11 12:57:56 +02:00
parent 4776e6ae9f
commit c7a96c18d8
4 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ public class ChunkedFile implements ChunkedInput {
private final long startOffset;
private final long endOffset;
private final int chunkSize;
private volatile long offset;
private long offset;
/**
* Creates a new instance that fetches data from the specified file.

View File

@ -39,7 +39,7 @@ public class ChunkedNioFile implements ChunkedInput {
private long startOffset;
private final long endOffset;
private final int chunkSize;
private volatile long offset;
private long offset;
/**
* Creates a new instance that fetches data from the specified file.

View File

@ -32,7 +32,7 @@ public class ChunkedNioStream implements ChunkedInput {
private final ReadableByteChannel in;
private final int chunkSize;
private volatile long offset;
private long offset;
/**
* Associated ByteBuffer

View File

@ -36,7 +36,7 @@ public class ChunkedStream implements ChunkedInput {
private final PushbackInputStream in;
private final int chunkSize;
private volatile long offset;
private long offset;
/**
* Creates a new instance that fetches data from the specified stream.