Skip to content

Commit d654978

Browse files
committed
Fix scala style
1 parent fbf7174 commit d654978

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

streaming/src/test/scala/org/apache/spark/streaming/TestSuiteBase.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ class TestInputStream[T: ClassTag](ssc_ : StreamingContext, input: Seq[Seq[T]],
7373
*
7474
* The buffer contains a sequence of RDD's, each containing a sequence of items
7575
*/
76-
class TestOutputStream[T: ClassTag](parent: DStream[T],
77-
val output: SynchronizedBuffer[Seq[T]] = new ArrayBuffer[Seq[T]] with SynchronizedBuffer[Seq[T]])
78-
extends ForEachDStream[T](parent, (rdd: RDD[T], t: Time) => {
76+
class TestOutputStream[T: ClassTag](
77+
parent: DStream[T],
78+
val output: SynchronizedBuffer[Seq[T]] =
79+
new ArrayBuffer[Seq[T]] with SynchronizedBuffer[Seq[T]]
80+
) extends ForEachDStream[T](parent, (rdd: RDD[T], t: Time) => {
7981
val collected = rdd.collect()
8082
output += collected
8183
}) {

0 commit comments

Comments
 (0)