Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MINOR: remove unnecessary imports #65

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions core/src/main/scala/kafka/admin/AdminUtils.scala
Expand Up @@ -29,9 +29,7 @@ import scala.collection._
import mutable.ListBuffer
import scala.collection.mutable
import kafka.common._
import scala.Predef._
import collection.Map
import scala.Some
import collection.Set

object AdminUtils extends Logging {
Expand Down
Expand Up @@ -19,7 +19,6 @@ import kafka.common.ErrorMapping
import org.apache.kafka.common.requests.{HeartbeatResponse, HeartbeatRequest}
import kafka.api.ApiUtils._
import kafka.network.RequestChannel.Response
import scala.Some

object HeartbeatRequestAndHeader {
def readFrom(buffer: ByteBuffer): HeartbeatRequestAndHeader = {
Expand Down
Expand Up @@ -19,7 +19,6 @@ import kafka.common.ErrorMapping
import org.apache.kafka.common.requests._
import kafka.api.ApiUtils._
import kafka.network.RequestChannel.Response
import scala.Some

object JoinGroupRequestAndHeader {
def readFrom(buffer: ByteBuffer): JoinGroupRequestAndHeader = {
Expand Down
1 change: 0 additions & 1 deletion core/src/main/scala/kafka/common/ErrorMapping.scala
Expand Up @@ -19,7 +19,6 @@ package kafka.common

import kafka.message.InvalidMessageException
import java.nio.ByteBuffer
import scala.Predef._

/**
* A bi-directional mapping between error codes and exceptions
Expand Down
Expand Up @@ -25,7 +25,6 @@ import kafka.server.KafkaConfig
import collection.mutable
import kafka.api._
import org.apache.log4j.Logger
import scala.Some
import kafka.common.TopicAndPartition
import kafka.api.RequestOrResponse
import collection.Set
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/scala/kafka/controller/KafkaController.scala
Expand Up @@ -36,9 +36,7 @@ import org.I0Itec.zkclient.{IZkDataListener, IZkStateListener, ZkClient}
import org.I0Itec.zkclient.exception.{ZkNodeExistsException, ZkNoNodeException}
import java.util.concurrent.atomic.AtomicInteger
import java.util.concurrent.locks.ReentrantLock
import scala.None
import kafka.server._
import scala.Some
import kafka.common.TopicAndPartition

class ControllerContext(val zkClient: ZkClient,
Expand Down
1 change: 0 additions & 1 deletion core/src/main/scala/kafka/server/DelayedProduce.scala
Expand Up @@ -23,7 +23,6 @@ import kafka.common.TopicAndPartition
import kafka.utils.Logging
import kafka.network.RequestChannel

import scala.Some
import scala.collection.immutable.Map
import scala.collection.Seq

Expand Down
1 change: 0 additions & 1 deletion core/src/main/scala/kafka/server/OffsetManager.scala
Expand Up @@ -30,7 +30,6 @@ import kafka.metrics.KafkaMetricsGroup
import kafka.common.TopicAndPartition
import kafka.tools.MessageFormatter

import scala.Some
import scala.collection._
import java.io.PrintStream
import java.util.concurrent.atomic.AtomicBoolean
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/scala/kafka/server/ReplicaManager.scala
Expand Up @@ -29,12 +29,10 @@ import kafka.message.MessageSet
import java.util.concurrent.atomic.AtomicBoolean
import java.io.{IOException, File}
import java.util.concurrent.TimeUnit
import scala.Predef._
import scala.collection._
import scala.collection.mutable.HashMap
import scala.collection.Map
import scala.collection.Set
import scala.Some

import org.I0Itec.zkclient.ZkClient
import com.yammer.metrics.core.Gauge
Expand Down
Expand Up @@ -28,7 +28,6 @@ import scala.collection._
import kafka.client.ClientUtils
import kafka.network.BlockingChannel
import kafka.api.PartitionOffsetRequestInfo
import scala.Some
import org.I0Itec.zkclient.exception.ZkNoNodeException

object ConsumerOffsetChecker extends Logging {
Expand Down
1 change: 0 additions & 1 deletion core/src/main/scala/kafka/utils/ReplicationUtils.scala
Expand Up @@ -22,7 +22,6 @@ import kafka.controller.LeaderIsrAndControllerEpoch
import org.apache.zookeeper.data.Stat
import org.I0Itec.zkclient.ZkClient

import scala.Some
import scala.collection._

object ReplicationUtils extends Logging {
Expand Down
1 change: 0 additions & 1 deletion core/src/main/scala/kafka/utils/ZkUtils.scala
Expand Up @@ -30,7 +30,6 @@ import kafka.admin._
import kafka.common.{KafkaException, NoEpochForPartitionException}
import kafka.controller.ReassignedPartitionsContext
import kafka.controller.KafkaController
import scala.Some
import kafka.controller.LeaderIsrAndControllerEpoch
import kafka.common.TopicAndPartition
import scala.collection
Expand Down
Expand Up @@ -27,7 +27,6 @@ import kafka.common.{OffsetAndMetadata, ErrorMapping, OffsetMetadataAndError}
import kafka.utils.SystemTime
import org.apache.kafka.common.requests._
import org.apache.kafka.common.protocol.ApiKeys
import scala.Some
import kafka.controller.LeaderIsrAndControllerEpoch
import kafka.common.TopicAndPartition
import org.apache.kafka.common.TopicPartition
Expand Down
2 changes: 0 additions & 2 deletions core/src/test/scala/unit/kafka/server/SimpleFetchTest.scala
Expand Up @@ -24,8 +24,6 @@ import kafka.message.{ByteBufferMessageSet, Message}
import kafka.network.RequestChannel
import kafka.utils.{ZkUtils, Time, TestUtils, MockTime}

import scala.Some

import org.easymock.EasyMock
import org.I0Itec.zkclient.ZkClient
import org.scalatest.junit.JUnit3Suite
Expand Down