diff --git a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java index 0d4cc3db988..2d58ac38282 100644 --- a/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java +++ b/elasticsearch/x-pack/graph/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java @@ -420,7 +420,7 @@ public class TransportGraphExploreAction extends HandledTransportAction newConnections, ArrayList newVertices) { + private void trimNewAdditions(Hop currentHop, ArrayList newConnections, ArrayList newVertices) { Set evictions = new HashSet<>(); for (int k = 0; k < currentHop.getNumberVertexRequests(); k++) { @@ -460,7 +460,7 @@ public class TransportGraphExploreAction extends HandledTransportAction resolve(LDAPInterface ldapConnection, String userDn, TimeValue timeout, ESLogger logger); diff --git a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/BCrypt.java b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/BCrypt.java index 4242beee7af..10579cc5474 100644 --- a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/BCrypt.java +++ b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/BCrypt.java @@ -484,7 +484,7 @@ public class BCrypt { * @param lr an array containing the two 32-bit half blocks * @param off the position in the array of the blocks */ - private final void encipher(int lr[], int off) { + private void encipher(int lr[], int off) { int i, n, l = lr[off], r = lr[off + 1]; l ^= P[0]; diff --git a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/RefreshListener.java b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/RefreshListener.java index e50916d0d59..9127d916af3 100644 --- a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/RefreshListener.java +++ b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/support/RefreshListener.java @@ -10,12 +10,7 @@ package org.elasticsearch.xpack.security.authc.support; */ public interface RefreshListener { - static final RefreshListener NOOP = new RefreshListener() { - @Override - public void onRefresh() { - } - }; + RefreshListener NOOP = () -> {}; void onRefresh(); - } diff --git a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/support/SearchRequestEquivalence.java b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/support/SearchRequestEquivalence.java index f4e40a59817..cc063d56920 100644 --- a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/support/SearchRequestEquivalence.java +++ b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/support/SearchRequestEquivalence.java @@ -29,7 +29,7 @@ public final class SearchRequestEquivalence { private SearchRequestEquivalence() { } - public final boolean equivalent(@Nullable SearchRequest a, @Nullable SearchRequest b) { + public boolean equivalent(@Nullable SearchRequest a, @Nullable SearchRequest b) { return a == b ? true : (a != null && b != null ? this.doEquivalent(a, b) : false); }