@@ -86,20 +86,20 @@ public void populateContext() {
86
86
populateContext (files );
87
87
}
88
88
89
- public void populateContext (List <File > uris ) {
90
- var workDoneProgressReporter = workDoneProgressHelper .createProgress (uris .size (), " files" );
89
+ public void populateContext (List <File > files ) {
90
+ var workDoneProgressReporter = workDoneProgressHelper .createProgress (files .size (), " files" );
91
91
workDoneProgressReporter .beginProgress ("Populating context..." );
92
92
93
93
LOGGER .debug ("Populating context..." );
94
94
contextLock .writeLock ().lock ();
95
95
96
- uris .parallelStream ().forEach ((File file ) -> {
96
+ files .parallelStream ().forEach ((File file ) -> {
97
97
98
98
workDoneProgressReporter .tick ();
99
99
100
100
var documentContext = getDocument (file .toURI ());
101
101
if (documentContext == null ) {
102
- documentContext = createDocumentContext (file , 0 );
102
+ documentContext = createDocumentContext (file );
103
103
documentContext .freezeComputedData ();
104
104
documentContext .clearSecondaryData ();
105
105
}
@@ -181,9 +181,9 @@ public Configuration getConfiguration() {
181
181
protected abstract DocumentContext lookupDocumentContext (URI absoluteURI );
182
182
183
183
@ SneakyThrows
184
- private DocumentContext createDocumentContext (File file , int version ) {
184
+ private DocumentContext createDocumentContext (File file ) {
185
185
String content = FileUtils .readFileToString (file , StandardCharsets .UTF_8 );
186
- return createDocumentContext (file .toURI (), content , version );
186
+ return createDocumentContext (file .toURI (), content , 0 );
187
187
}
188
188
189
189
private DocumentContext createDocumentContext (URI uri , String content , int version ) {
0 commit comments