diff --git a/libs/native/src/main21/java/org/elasticsearch/nativeaccess/jdk/JdkSystemdLibrary.java b/libs/native/src/main21/java/org/elasticsearch/nativeaccess/jdk/JdkSystemdLibrary.java index e09cc578f0693..0af87154960ad 100644 --- a/libs/native/src/main21/java/org/elasticsearch/nativeaccess/jdk/JdkSystemdLibrary.java +++ b/libs/native/src/main21/java/org/elasticsearch/nativeaccess/jdk/JdkSystemdLibrary.java @@ -63,9 +63,11 @@ static List findLibSystemd() { final String libpath = System.getProperty("java.library.path"); return Arrays.stream(libpath.split(":")).map(Paths::get).filter(Files::exists).flatMap(p -> { try { - return Files.find(p, Integer.MAX_VALUE, (fp, attrs) -> ( - attrs.isDirectory() == false && fp.getFileName().equals(libsystemd) - )); + return Files.find( + p, + Integer.MAX_VALUE, + (fp, attrs) -> (attrs.isDirectory() == false && fp.getFileName().equals(libsystemd)) + ); } catch (IOException e) { throw new UncheckedIOException(e); }