diff --git a/.eclipseformat.xml b/.eclipseformat.xml index 9e913b41926a8..19ac64cbb4583 100644 --- a/.eclipseformat.xml +++ b/.eclipseformat.xml @@ -51,7 +51,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -286,7 +286,7 @@ - + diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/tar/SymbolicLinkPreservingTar.java b/buildSrc/src/main/java/org/elasticsearch/gradle/tar/SymbolicLinkPreservingTar.java index e92221f1f869e..f34a78754cbf1 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/tar/SymbolicLinkPreservingTar.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/tar/SymbolicLinkPreservingTar.java @@ -139,8 +139,7 @@ private boolean isChildOfVisitedSymbolicLink(final FileCopyDetailsInternal detai return false; } for (final File symbolicLink : visitedSymbolicLinks) { - if (isChildOf(symbolicLink, file)) - return true; + if (isChildOf(symbolicLink, file)) return true; } return false; } diff --git a/buildSrc/src/test/java/org/elasticsearch/gradle/precommit/ForbiddenPatternsTaskTests.java b/buildSrc/src/test/java/org/elasticsearch/gradle/precommit/ForbiddenPatternsTaskTests.java index 7d61cb46e77ea..9cea6dd9cd0f9 100644 --- a/buildSrc/src/test/java/org/elasticsearch/gradle/precommit/ForbiddenPatternsTaskTests.java +++ b/buildSrc/src/test/java/org/elasticsearch/gradle/precommit/ForbiddenPatternsTaskTests.java @@ -82,8 +82,7 @@ private void writeSourceFile(Project project, String name, String... lines) thro file.getParentFile().mkdirs(); file.createNewFile(); - if (lines.length != 0) - Files.write(file.toPath(), Arrays.asList(lines), StandardCharsets.UTF_8); + if (lines.length != 0) Files.write(file.toPath(), Arrays.asList(lines), StandardCharsets.UTF_8); } private void checkAndAssertTaskSuccessful(ForbiddenPatternsTask task) throws IOException { diff --git a/buildSrc/src/test/java/org/elasticsearch/gradle/test/JUnit3MethodProvider.java b/buildSrc/src/test/java/org/elasticsearch/gradle/test/JUnit3MethodProvider.java index 4b3384eb117c3..b407b0d5fdfd1 100644 --- a/buildSrc/src/test/java/org/elasticsearch/gradle/test/JUnit3MethodProvider.java +++ b/buildSrc/src/test/java/org/elasticsearch/gradle/test/JUnit3MethodProvider.java @@ -40,8 +40,7 @@ public Collection getTestMethods(Class suiteClass, ClassModel classMo ArrayList result = new ArrayList<>(); for (MethodModel mm : methods.values()) { // Skip any methods that have overrieds/ shadows. - if (mm.getDown() != null) - continue; + if (mm.getDown() != null) continue; Method m = mm.element; if (m.getName().startsWith("test") diff --git a/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichMetadata.java b/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichMetadata.java index 41700a045d0bd..264a4f0648110 100644 --- a/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichMetadata.java +++ b/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichMetadata.java @@ -109,10 +109,8 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws @Override public boolean equals(Object o) { - if (this == o) - return true; - if (o == null || getClass() != o.getClass()) - return false; + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; EnrichMetadata that = (EnrichMetadata) o; return policies.equals(that.policies); }