Skip to content

Commit e81ea07

Browse files
angelozerrdatho7561
authored andcommitted
Use Collectors.toList()
Signed-off-by: azerr <azerr@redhat.com>
1 parent 0a4dbbf commit e81ea07

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

qute.ls/com.redhat.qute.ls/src/main/java/com/redhat/qute/project/documents/QuteClosedTextDocuments.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.util.ArrayList;
1717
import java.util.List;
1818
import java.util.Map;
19+
import java.util.stream.Collectors;
1920
import java.util.stream.Stream;
2021

2122
import com.redhat.qute.commons.TemplateRootPath;
@@ -72,8 +73,10 @@ private synchronized void scan(ProgressContext progressContext) {
7273
}
7374
// Step 1: collect all template file path from all root paths
7475
// (src/main/resources/templates, src/main/resources/content, etc)
75-
List<Path> rootPaths = project.getTemplateRootPaths().stream() //
76-
.map(TemplateRootPath::getBasePath).toList();
76+
List<Path> rootPaths = project.getTemplateRootPaths() //
77+
.stream() //
78+
.map(TemplateRootPath::getBasePath) //
79+
.collect(Collectors.toList());
7780
List<Path> templatePaths = collectTemplatePaths(rootPaths);
7881

7982
int totalFiles = templatePaths.size();

0 commit comments

Comments
 (0)