@@ -20,8 +20,6 @@ public final class Reader implements Closeable {
2020 (byte ) 0xCD , (byte ) 0xEF , 'M' , 'a' , 'x' , 'M' , 'i' , 'n' , 'd' , '.' ,
2121 'c' , 'o' , 'm' };
2222
23- private static final NodeCache NO_CACHE = new NoCache ();
24-
2523 private final int ipV4Start ;
2624 private final Metadata metadata ;
2725 private final AtomicReference <BufferHolder > bufferHolderReference ;
@@ -52,7 +50,7 @@ public enum FileMode {
5250 * @throws IOException if there is an error opening or reading from the file.
5351 */
5452 public Reader (File database ) throws IOException {
55- this (database , NO_CACHE );
53+ this (database , NoCache . getInstance () );
5654 }
5755
5856 /**
@@ -76,7 +74,7 @@ public Reader(File database, NodeCache cache) throws IOException {
7674 * @throws IOException if there is an error reading from the Stream.
7775 */
7876 public Reader (InputStream source ) throws IOException {
79- this (source , NO_CACHE );
77+ this (source , NoCache . getInstance () );
8078 }
8179
8280 /**
@@ -101,7 +99,7 @@ public Reader(InputStream source, NodeCache cache) throws IOException {
10199 * @throws IOException if there is an error opening or reading from the file.
102100 */
103101 public Reader (File database , FileMode fileMode ) throws IOException {
104- this (database , fileMode , NO_CACHE );
102+ this (database , fileMode , NoCache . getInstance () );
105103 }
106104
107105 /**
0 commit comments