We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 802203e commit 79231ccCopy full SHA for 79231cc
2 files changed
IP.java
@@ -30,8 +30,7 @@ public static void main(String[] args){
30
public static void load(String filename) {
31
ipFile = new File(filename);
32
load();
33
- if (enableFileWatch)
34
- {
+ if (enableFileWatch) {
35
watch();
36
}
37
IPExt.java
@@ -80,11 +80,6 @@ public void run() {
80
private static void load() {
81
lock.lock();
82
lastModifyTime = ipFile.lastModified();
83
- if (dataBuffer != null && dataBuffer.position() > 0) {
84
- dataBuffer.clear();
85
- indexBuffer.clear();
86
- }
87
-
88
dataBuffer = ByteBuffer.wrap(getBytesByFile(ipFile));
89
dataBuffer.position(0);
90
offset = dataBuffer.getInt(); // indexLength
0 commit comments