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 2020package net .prominic .groovyls .util ;
2121
2222import com .cleanroommc .groovyscript .sandbox .FileUtil ;
23+ import it .unimi .dsi .fastutil .objects .Object2ObjectOpenHashMap ;
24+ import it .unimi .dsi .fastutil .objects .ObjectOpenHashSet ;
2325import org .eclipse .lsp4j .*;
2426
2527import java .io .BufferedReader ;
2628import java .io .IOException ;
2729import java .net .URI ;
2830import java .nio .file .Files ;
2931import java .nio .file .Paths ;
30- import java .util .HashMap ;
31- import java .util .HashSet ;
3232import java .util .Map ;
3333import java .util .Set ;
3434
3535public class FileContentsTracker {
3636
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 <>();
3939
4040 public Set <URI > getOpenURIs () {
4141 return openFiles .keySet ();
@@ -46,7 +46,7 @@ public Set<URI> getChangedURIs() {
4646 }
4747
4848 public void resetChangedFiles () {
49- changedFiles = new HashSet <>();
49+ changedFiles = new ObjectOpenHashSet <>();
5050 }
5151
5252 public void forceChanged (URI uri ) {
You can’t perform that action at this time.
0 commit comments