Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4178#discussion_r24290143
  
    --- Diff: 
external/mqtt/src/main/scala/org/apache/spark/streaming/mqtt/MQTTInputDStream.scala
 ---
    @@ -17,28 +17,22 @@
     
     package org.apache.spark.streaming.mqtt
     
    +import java.io.IOException
    +import java.util.concurrent.Executors
    +import java.util.Properties
    +
    +import scala.collection.JavaConversions._
     import scala.collection.Map
     import scala.collection.mutable.HashMap
    -import scala.collection.JavaConversions._
     import scala.reflect.ClassTag
     
    -import java.util.Properties
    -import java.util.concurrent.Executors
    -import java.io.IOException
    -
    -import org.eclipse.paho.client.mqttv3.MqttCallback
    -import org.eclipse.paho.client.mqttv3.MqttClient
    -import org.eclipse.paho.client.mqttv3.MqttClientPersistence
    +import org.eclipse.paho.client.mqttv3._
    --- End diff --
    
    I don't know how strong the convention is here, but I would have left the 
individual imports in this case.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to