Skip to content

Commit fd78ac3

Browse files
authored
Fix eclipse compilation for categorization agg (#79252)
Works around an eclipse bug where nested classes can't see things imported by their parameterized outer classes. Tracked here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=565255
1 parent f811c23 commit fd78ac3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/aggs/categorization/InternalCategorizationAggregation.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ public int compareTo(BucketKey o) {
171171

172172
}
173173

174-
public static class Bucket extends InternalBucket implements MultiBucketsAggregation.Bucket, Comparable<Bucket> {
174+
public static class Bucket extends InternalMultiBucketAggregation.InternalBucket
175+
implements
176+
MultiBucketsAggregation.Bucket,
177+
Comparable<Bucket> {
175178
// Used on the shard level to keep track of sub aggregations
176179
long bucketOrd;
177180

0 commit comments

Comments
 (0)