File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/net/prominic/groovyls/util Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 20
20
package net .prominic .groovyls .util ;
21
21
22
22
import com .cleanroommc .groovyscript .sandbox .FileUtil ;
23
+ import it .unimi .dsi .fastutil .objects .Object2ObjectOpenHashMap ;
24
+ import it .unimi .dsi .fastutil .objects .ObjectOpenHashSet ;
23
25
import org .eclipse .lsp4j .*;
24
26
25
27
import java .io .BufferedReader ;
26
28
import java .io .IOException ;
27
29
import java .net .URI ;
28
30
import java .nio .file .Files ;
29
31
import java .nio .file .Paths ;
30
- import java .util .HashMap ;
31
- import java .util .HashSet ;
32
32
import java .util .Map ;
33
33
import java .util .Set ;
34
34
35
35
public class FileContentsTracker {
36
36
37
- private final Map <URI , String > openFiles = new HashMap <>();
38
- private Set <URI > changedFiles = new HashSet <>();
37
+ private final Map <URI , String > openFiles = new Object2ObjectOpenHashMap <>();
38
+ private Set <URI > changedFiles = new ObjectOpenHashSet <>();
39
39
40
40
public Set <URI > getOpenURIs () {
41
41
return openFiles .keySet ();
@@ -46,7 +46,7 @@ public Set<URI> getChangedURIs() {
46
46
}
47
47
48
48
public void resetChangedFiles () {
49
- changedFiles = new HashSet <>();
49
+ changedFiles = new ObjectOpenHashSet <>();
50
50
}
51
51
52
52
public void forceChanged (URI uri ) {
You can’t perform that action at this time.
0 commit comments