Chia-Ping Tsai created KAFKA-17723: -------------------------------------- Summary: add @SuppressWarnings("this-escape") to MultiThreadedEventProcessor and DistributedHerder Key: KAFKA-17723 URL: https://issues.apache.org/jira/browse/KAFKA-17723 Project: Kafka Issue Type: Improvement Reporter: Chia-Ping Tsai Assignee: Chia-Ping Tsai
{code:java} > Task :coordinator-common:compileJava FAILED /root/kafka/coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/MultiThreadedEventProcessor.java:107: warning: [this-escape] possible 'this' escape before subclass is fully initialized this.threads = IntStream.range(0, numThreads).mapToObj(threadId -> ^ error: warnings found and -Werror specified {code} {code:java} > Task :connect:runtime:compileJava /root/kafka/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:269: warning: [this-escape] possible 'this' escape before subclass is fully initialized this(config, worker, worker.workerId(), kafkaClusterId, statusBackingStore, configBackingStore, null, restUrl, restClient, worker.metrics(), ^ /root/kafka/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:318: warning: [this-escape] previous possible 'this' escape happens here via invocation new RebalanceListener(time), time, clientId, logContext); {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)