File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/java/com/puppycrawl/tools/checkstyle Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -212,17 +212,17 @@ public void setBasedir(String basedir) {
212
212
213
213
@ Override
214
214
public int process (List <File > files ) throws CheckstyleException {
215
- return processFilesInternal (files );
215
+ return process (files .stream ()
216
+ .map (File ::toPath )
217
+ .collect (Collectors .toList ()));
216
218
}
217
219
218
220
@ Override
219
221
public int process (Collection <Path > paths ) throws CheckstyleException {
220
- return processFilesInternal (paths .stream ()
221
- .map (Path ::toFile )
222
- .collect (Collectors .toUnmodifiableList ()));
222
+ return processPaths (paths );
223
223
}
224
224
225
- private int processFilesInternal ( List < File > files ) throws CheckstyleException {
225
+ private int processPaths ( Collection < Path > files ) throws CheckstyleException {
226
226
if (cacheFile != null ) {
227
227
cacheFile .putExternalResources (getExternalResourceLocations ());
228
228
}
@@ -234,6 +234,7 @@ private int processFilesInternal(List<File> files) throws CheckstyleException {
234
234
}
235
235
236
236
processFiles (files .stream ()
237
+ .map (Path ::toFile )
237
238
.filter (file -> CommonUtil .matchesFileExtension (file , fileExtensions ))
238
239
.collect (Collectors .toUnmodifiableList ()));
239
240
You can’t perform that action at this time.
0 commit comments