Skip to content

Commit 111d7c2

Browse files
author
Christoph Büscher
authored
Remove some unneeded eclipse workarounds (#47987)
1 parent 1842124 commit 111d7c2

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

server/src/main/java/org/elasticsearch/action/fieldcaps/FieldCapabilities.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,7 @@ List<String> getIndices() {
310310

311311
FieldCapabilities build(boolean withIndices) {
312312
final String[] indices;
313-
/* Eclipse can't deal with o -> o.name, maybe because of
314-
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=511750 */
315-
Collections.sort(indiceList, Comparator.comparing((IndexCaps o) -> o.name));
313+
Collections.sort(indiceList, Comparator.comparing(o -> o.name));
316314
if (withIndices) {
317315
indices = indiceList.stream()
318316
.map(caps -> caps.name)

server/src/main/java/org/elasticsearch/gateway/GatewayAllocator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
package org.elasticsearch.gateway;
2121

2222
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
23+
2324
import org.apache.logging.log4j.LogManager;
2425
import org.apache.logging.log4j.Logger;
2526
import org.apache.logging.log4j.message.ParameterizedMessage;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/AutoFollowStats.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ public AutoFollowStats(StreamInput in) throws IOException {
114114
numberOfFailedFollowIndices = in.readVLong();
115115
numberOfFailedRemoteClusterStateRequests = in.readVLong();
116116
numberOfSuccessfulFollowIndices = in.readVLong();
117-
// note: the casts to the following Writeable.Reader<T> instances are needed by some IDEs (e.g. Eclipse 4.8) as a compiler help
118-
recentAutoFollowErrors = new TreeMap<>(in.readMap(StreamInput::readString,
119-
in1 -> new Tuple<>(in1.readZLong(), in1.readException())));
117+
recentAutoFollowErrors = new TreeMap<>(
118+
in.readMap(StreamInput::readString, in1 -> new Tuple<>(in1.readZLong(), in1.readException())));
120119
autoFollowedClusters = new TreeMap<>(in.readMap(StreamInput::readString, AutoFollowedCluster::new));
121120
}
122121

0 commit comments

Comments
 (0)