lhotari commented on code in PR #19376:
URL: https://github.com/apache/pulsar/pull/19376#discussion_r1092844044
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/web/ProcessHandlerFilter.java:
##########
@@ -27,24 +27,20 @@
import javax.servlet.ServletResponse;
import javax.ws.rs.core.MediaType;
import org.apache.commons.lang3.StringUtils;
-import org.apache.pulsar.broker.PulsarService;
import org.apache.pulsar.broker.intercept.BrokerInterceptor;
public class ProcessHandlerFilter implements Filter {
private final BrokerInterceptor interceptor;
- private final boolean interceptorEnabled;
- public ProcessHandlerFilter(PulsarService pulsar) {
- this.interceptor = pulsar.getBrokerInterceptor();
- this.interceptorEnabled =
!pulsar.getConfig().getBrokerInterceptors().isEmpty();
+ public ProcessHandlerFilter(BrokerInterceptor brokerInterceptor) {
Review Comment:
Thanks. I used `Objects.requireNonNull`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]