Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/21078#discussion_r182833013 --- Diff: mllib/src/main/scala/org/apache/spark/ml/util/Instrumentation.scala --- @@ -150,3 +156,35 @@ private[spark] object Instrumentation { } } + +private[spark] class OptionalInstrument private ( + val instrument: Option[Instrumentation[_ <: Estimator[_]]], + val className: String) extends Logging { + + def this(instr: Instrumentation[_ <: Estimator[_]]) = this(Some(instr), "") + + def this(clazz: Class[_]) = this(None, clazz.getName.stripSuffix("$")) + + protected override def logName = className --- End diff -- Fix IntelliJ style warning: add explicit type annotation
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org