Skip to content

Commit 02435ac

Browse files
committed
[SPARK-16153][MLLIB] switch to multi-line doc to avoid a genjavadoc bug
## What changes were proposed in this pull request? We recently deprecated setLabelCol in ChiSqSelectorModel (#13823): ~~~scala /** group setParam */ Since("1.6.0") deprecated("labelCol is not used by ChiSqSelectorModel.", "2.0.0") def setLabelCol(value: String): this.type = set(labelCol, value) ~~~ This unfortunately hit a genjavadoc bug and broken doc generation. This is the generated Java code: ~~~java /** group setParam */ public org.apache.spark.ml.feature.ChiSqSelectorModel setOutputCol (java.lang.String value) { throw new RuntimeException(); } * * deprecated labelCol is not used by ChiSqSelectorModel. Since 2.0.0. */ public org.apache.spark.ml.feature.ChiSqSelectorModel setLabelCol (java.lang.String value) { throw new RuntimeException(); } ~~~ Switching to multiline is a workaround. Author: Xiangrui Meng <[email protected]> Closes #13855 from mengxr/SPARK-16153. (cherry picked from commit 00cc5cc) Signed-off-by: Xiangrui Meng <[email protected]>
1 parent 282a3cd commit 02435ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ final class ChiSqSelectorModel private[ml] (
140140
@Since("1.6.0")
141141
def setOutputCol(value: String): this.type = set(outputCol, value)
142142

143-
/** @group setParam */
143+
/**
144+
* @group setParam
145+
*/
144146
@Since("1.6.0")
145147
@deprecated("labelCol is not used by ChiSqSelectorModel.", "2.0.0")
146148
def setLabelCol(value: String): this.type = set(labelCol, value)

0 commit comments

Comments
 (0)