Skip to content

Commit 2652170

Browse files
committed
[SPARK-12177][Streaming][Kafka] move trait to abstract class per tdas
1 parent 2aea113 commit 2652170

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

external/kafka-0-10/src/main/scala/org/apache/spark/streaming/kafka010/ConsumerStrategy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import org.apache.spark.annotation.Experimental
3636
* @tparam V type of Kafka message value
3737
*/
3838
@Experimental
39-
trait ConsumerStrategy[K, V] {
39+
abstract class ConsumerStrategy[K, V] {
4040
/**
4141
* Kafka <a href="http://kafka.apache.org/documentation.htmll#newconsumerconfigs">
4242
* configuration parameters</a> to be used on executors. Requires "bootstrap.servers" to be set

external/kafka-0-10/src/main/scala/org/apache/spark/streaming/kafka010/LocationStrategy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import org.apache.spark.annotation.Experimental
3434
* Choice of location is only a preference, not an absolute; partitions may be scheduled elsewhere.
3535
*/
3636
@Experimental
37-
sealed trait LocationStrategy
37+
sealed abstract class LocationStrategy
3838

3939
private case object PreferBrokers extends LocationStrategy
4040

0 commit comments

Comments
 (0)