No need for volatile

This commit is contained in:
norman 2012-06-11 09:58:53 +02:00
parent d27a27c980
commit 71ad0125d6
5 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ public class ChunkedFile implements ChunkedByteInput {
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

@ -29,7 +29,7 @@ public interface ChunkedInput<B> {
boolean isEndOfInput() throws Exception;
/**
* Releases the resources associated with the stream.
* Releases the resources associated with the input.
*/
void close() throws Exception;

View File

@ -36,7 +36,7 @@ public class ChunkedNioFile implements ChunkedByteInput {
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

@ -30,7 +30,7 @@ public class ChunkedNioStream implements ChunkedByteInput {
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 ChunkedByteInput {
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.