From 72c3b88ed5066d71eac7be393b94e1f64b631b1f Mon Sep 17 00:00:00 2001 From: Boyang Chen Date: Thu, 6 Jun 2019 17:32:13 -0700 Subject: [PATCH] MINOR: Fixed compiler warnings in LogManagerTest (#6897) Reviewers: Jason Gustafson , Guozhang Wang --- core/src/test/scala/unit/kafka/log/LogManagerTest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/scala/unit/kafka/log/LogManagerTest.scala b/core/src/test/scala/unit/kafka/log/LogManagerTest.scala index 3df09e7a54a..ed1824df04d 100755 --- a/core/src/test/scala/unit/kafka/log/LogManagerTest.scala +++ b/core/src/test/scala/unit/kafka/log/LogManagerTest.scala @@ -382,8 +382,8 @@ class LogManagerTest { @Test def testCreateAndDeleteOverlyLongTopic(): Unit = { - val invalidTopicName = String.join("", Collections.nCopies(253, "x")); - val log = logManager.getOrCreateLog(new TopicPartition(invalidTopicName, 0), logConfig) + val invalidTopicName = String.join("", Collections.nCopies(253, "x")) + logManager.getOrCreateLog(new TopicPartition(invalidTopicName, 0), logConfig) logManager.asyncDelete(new TopicPartition(invalidTopicName, 0)) }