Skip to content

Commit 3527fad

Browse files
author
Ryan
committed
changed parameter name and added comment.
1 parent 4bd156f commit 3527fad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/com/mongodb/gridfs/GridFSInputFile.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,21 @@ public void setContentType( String ct ) {
138138

139139
/**
140140
* Set the chunk size. This must be called before saving any data.
141-
* @param _chunkSize
141+
* @param chunkSize The size in bytes.
142142
*/
143-
public void setChunkSize(long _chunkSize) {
143+
public void setChunkSize(long chunkSize) {
144144
if (_outputStream != null || _savedChunks)
145145
return;
146-
this._chunkSize = _chunkSize;
147-
this._buffer = new byte[(int) _chunkSize];
146+
_chunkSize = chunkSize;
147+
_buffer = new byte[(int) _chunkSize];
148148
}
149149

150150
/**
151151
* calls {@link GridFSInputFile#save(long)} with the existing chunk size
152152
*/
153153
@Override
154154
public void save() {
155-
save( _chunkSize);
155+
save( _chunkSize );
156156
}
157157

158158
/**

0 commit comments

Comments
 (0)