Skip to content

Commit e2957bc

Browse files
committed
[SPARK-11674][ML] add private val after @transient in Word2VecModel
This causes compile failure with Scala 2.11. See https://issues.scala-lang.org/browse/SI-8813. (Jenkins won't test Scala 2.11. I tested compile locally.) JoshRosen Author: Xiangrui Meng <meng@databricks.com> Closes #9644 from mengxr/SPARK-11674.
1 parent 39b1e36 commit e2957bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/ml/feature/Word2Vec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ final class Word2Vec(override val uid: String) extends Estimator[Word2VecModel]
146146
@Experimental
147147
class Word2VecModel private[ml] (
148148
override val uid: String,
149-
@transient wordVectors: feature.Word2VecModel)
149+
@transient private val wordVectors: feature.Word2VecModel)
150150
extends Model[Word2VecModel] with Word2VecBase {
151151

152152
/**

0 commit comments

Comments
 (0)