File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/maxmind/db Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ private Reader(BufferHolder bufferHolder, String name) throws IOException {
103103 * if a file I/O error occurs.
104104 */
105105 public JsonNode get (InetAddress ipAddress ) throws IOException {
106- ByteBuffer buffer = getBufferHolder ().get ();
106+ ByteBuffer buffer = this . getBufferHolder ().get ();
107107 int pointer = this .findAddressInTree (buffer , ipAddress );
108108 if (pointer == 0 ) {
109109 return null ;
@@ -112,7 +112,7 @@ public JsonNode get(InetAddress ipAddress) throws IOException {
112112 }
113113
114114 private BufferHolder getBufferHolder () throws ClosedDatabaseException {
115- BufferHolder bufferHolder = bufferHolderReference .get ();
115+ BufferHolder bufferHolder = this . bufferHolderReference .get ();
116116 if (bufferHolder == null ) {
117117 throw new ClosedDatabaseException ();
118118 }
@@ -250,6 +250,6 @@ Metadata getMetadata() {
250250 */
251251 @ Override
252252 public void close () throws IOException {
253- bufferHolderReference .getAndSet (null ). close ( );
253+ this . bufferHolderReference .set (null );
254254 }
255255}
You can’t perform that action at this time.
0 commit comments