Skip to content

Commit 6897252

Browse files
committed
Preface minimumOccurence members with val to make them final and immutable
1 parent a200bab commit 6897252

File tree

1 file changed

+2
-2
lines changed
  • mllib/src/main/scala/org/apache/spark/mllib/feature

1 file changed

+2
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/feature/IDF.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import org.apache.spark.rdd.RDD
4141
*
4242
*/
4343
@Experimental
44-
class IDF(minimumOccurence: Long) {
44+
class IDF(val minimumOccurence: Long) {
4545

4646
def this() = this(0L)
4747

@@ -71,7 +71,7 @@ class IDF(minimumOccurence: Long) {
7171
private object IDF {
7272

7373
/** Document frequency aggregator. */
74-
class DocumentFrequencyAggregator(minimumOccurence: Long) extends Serializable {
74+
class DocumentFrequencyAggregator(val minimumOccurence: Long) extends Serializable {
7575

7676
/** number of documents */
7777
private var m = 0L

0 commit comments

Comments
 (0)