Skip to content

Commit 1f681db

Browse files
committed
Fixes acc to PR comments
Signed-off-by: Nils Bandener <[email protected]>
1 parent 9f3791e commit 1f681db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/action/support/ActionFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ default <Request extends ActionRequest, Response extends ActionResponse> void ap
7474
* @deprecated please do not override this method any more. Instead, override the method with the additional
7575
* ActionRequestMetadata parameter. This method will be removed soon.
7676
*/
77-
@Deprecated
77+
@Deprecated(forRemoval = true)
7878
default <Request extends ActionRequest, Response extends ActionResponse> void apply(
7979
Task task,
8080
String action,
8181
Request request,
8282
ActionListener<Response> listener,
8383
ActionFilterChain<Request, Response> chain
8484
) {
85-
assert false : "Incomplete implementation of ActionFilter interface in " + this;
85+
throw new UnsupportedOperationException("Incomplete implementation of ActionFilter interface in " + this);
8686
}
8787

8888
/**

0 commit comments

Comments
 (0)