}
<BUG>public WritableByteChannel getFileWriter(final ByteBuffer buffer) {
</BUG>
this.numEntriesInCurrentFile++;
<BUG>if (this.numEntriesInCurrentFile > this.maxEntriesInFile) {

this.onMaxEntriesInFileExceeded(buffer);

}</BUG>
if (this.logFiles.size() > this.maxAmountOfFiles) {

}
public PooledFileChannel getFileWriter(final ByteBuffer buffer) {
this.numEntriesInCurrentFile++;
if ((this.numEntriesInCurrentFile - this.maxEntriesPerFile) > 0) {
this.onThresholdExceeded(buffer);
}
if (this.currentChannel.getBytesWritten() > this.maxBytesPerFile) {
this.onThresholdExceeded(buffer);
}
if (this.logFiles.size() > this.maxAmountOfFiles) {
