Skip to content

Commit 72541c0

Browse files
committed
Remove useless SuppressWarnings
1 parent 190f7d7 commit 72541c0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/inference/InferenceOperator.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public abstract class InferenceOperator extends AsyncOperator<InferenceOperator.
3131

3232
private final BulkInferenceExecutor bulkInferenceExecutor;
3333

34-
@SuppressWarnings("this-escape")
3534
public InferenceOperator(DriverContext driverContext, InferenceRunner inferenceRunner, ThreadPool threadPool, String inferenceId) {
3635
super(driverContext, threadPool.getThreadContext(), MAX_INFERENCE_WORKER);
3736
this.blockFactory = driverContext.blockFactory();
@@ -86,10 +85,6 @@ protected BulkInferenceExecutionConfig bulkExecutionConfig() {
8685

8786
protected abstract OutputBuilder outputBuilder(Page input);
8887

89-
public record OngoingInference(Page inputPage, InferenceAction.Response[] responses) {
90-
91-
}
92-
9388
public interface OutputBuilder extends Releasable {
9489
void addInferenceResponse(InferenceAction.Response inferenceResponse);
9590

@@ -106,4 +101,8 @@ static <IR extends InferenceServiceResults> IR inferenceResults(InferenceAction.
106101
);
107102
}
108103
}
104+
105+
public record OngoingInference(Page inputPage, InferenceAction.Response[] responses) {
106+
107+
}
109108
}

0 commit comments

Comments
 (0)