Skip to content

Commit

Permalink
use Array.empty
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jul 31, 2015
1 parent 21c8cfa commit 9e241d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class StringIndexerInverse private[ml] (
* @group setParam
*/
def setLabels(value: Array[String]): this.type = set(labels, value)
setDefault(labels -> Array[String]())
setDefault(labels -> Array.empty[String])

/**
* Param for array of labels.
Expand Down

0 comments on commit 9e241d8

Please sign in to comment.