From 6b6038d91c213bb97b5bd23d818f498a1fff068e Mon Sep 17 00:00:00 2001 From: Andrew Wilkins Date: Wed, 8 May 2024 07:58:37 +0800 Subject: [PATCH] Another kind of spotless apply --- .../elasticsearch/nativeaccess/jdk/JdkSystemdLibrary.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 e09cc578f069..0af87154960a 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); }