diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/Consumer.java b/clients/src/main/java/org/apache/kafka/clients/consumer/Consumer.java
index 05ac8688931d6..ee4a70770af97 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/Consumer.java
+++ b/clients/src/main/java/org/apache/kafka/clients/consumer/Consumer.java
@@ -249,7 +249,7 @@ public interface Consumer
- * This is an alias for {@link commitRecord(SourceRecord, RecordMetadata)} for backwards compatibility. The default - * implementation of {@link commitRecord(SourceRecord, RecordMetadata)} just calls this method. It is not necessary + * This is an alias for {@link #commitRecord(SourceRecord, RecordMetadata)} for backwards compatibility. The default + * implementation of {@link #commitRecord(SourceRecord, RecordMetadata)} just calls this method. It is not necessary * to override both methods. *
*@@ -105,7 +105,7 @@ public void commit() throws InterruptedException { * * @param record {@link SourceRecord} that was successfully sent via the producer or filtered by a transformation * @throws InterruptedException - * @see commitRecord(SourceRecord, RecordMetadata) + * @see #commitRecord(SourceRecord, RecordMetadata) */ public void commitRecord(SourceRecord record) throws InterruptedException { // This space intentionally left blank. diff --git a/core/src/test/scala/unit/kafka/controller/ControllerContextTest.scala b/core/src/test/scala/unit/kafka/controller/ControllerContextTest.scala index 39023fa0945e2..0923b1860ded9 100644 --- a/core/src/test/scala/unit/kafka/controller/ControllerContextTest.scala +++ b/core/src/test/scala/unit/kafka/controller/ControllerContextTest.scala @@ -18,7 +18,6 @@ package unit.kafka.controller import kafka.cluster.{Broker, EndPoint} -import kafka.controller.PartitionAndReplica import kafka.controller.{ControllerContext, ReplicaAssignment} import org.apache.kafka.common.TopicPartition import org.apache.kafka.common.network.ListenerName diff --git a/core/src/test/scala/unit/kafka/utils/TestUtils.scala b/core/src/test/scala/unit/kafka/utils/TestUtils.scala index 7d1862a5e6e66..871d81c314ccf 100755 --- a/core/src/test/scala/unit/kafka/utils/TestUtils.scala +++ b/core/src/test/scala/unit/kafka/utils/TestUtils.scala @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package kafka.utils import java.io._ @@ -27,17 +26,13 @@ import java.time.Duration import java.util.{Arrays, Collections, Properties} import java.util.concurrent.{Callable, ExecutionException, Executors, TimeUnit} -import com.yammer.metrics.Metrics -import com.yammer.metrics.core.Meter import javax.net.ssl.X509TrustManager import kafka.api._ import kafka.cluster.{Broker, EndPoint} -import kafka.controller.LeaderIsrAndControllerEpoch import kafka.log._ import kafka.security.auth.{Acl, Authorizer => LegacyAuthorizer, Resource} import kafka.server._ import kafka.server.checkpoints.OffsetCheckpointFile -import Implicits._ import com.yammer.metrics.core.Meter import kafka.controller.LeaderIsrAndControllerEpoch import kafka.metrics.KafkaYammerMetrics