Skip to content

Commit 244a3a3

Browse files
committed
Fix JDK8 issue with use of Path.of
1 parent 3bf24a2 commit 244a3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/maven/module-info-compiler-maven-plugin/src/main/java/org/apache/arrow/maven/plugins/ModuleInfoCompilerPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private Optional<File> findFirstModuleInfo(List<String> sourceDirectories) {
8383
return Optional.empty();
8484
}
8585

86-
return sourceDirectories.stream().map(Path::of)
86+
return sourceDirectories.stream().map(Paths::get)
8787
.map(sourcePath ->
8888
sourcePath.toFile().listFiles(file ->
8989
file.getName().equals("module-info.java")))

0 commit comments

Comments
 (0)