Skip to content

Commit aeb2a3a

Browse files
committed
Added comment
1 parent 30b66e5 commit aeb2a3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/maxmind/db/BufferHolder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ final class BufferHolder implements Closeable {
6363
this.fc = null;
6464
}
6565

66+
/*
67+
* Returns a duplicate of the underlying ByteBuffer. The returned ByteBuffer
68+
* should not be shared between threads.
69+
*/
6670
synchronized ByteBuffer get() {
6771
return this.buffer.duplicate();
6872
}

0 commit comments

Comments
 (0)