We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1abc2b commit 0755b9dCopy full SHA for 0755b9d
mllib/src/main/scala/org/apache/spark/mllib/util/NumericParser.scala
@@ -19,8 +19,6 @@ package org.apache.spark.mllib.util
19
20
import java.util.StringTokenizer
21
22
-import org.apache.commons.lang.StringUtils.isBlank
23
-
24
import scala.collection.mutable.{ArrayBuilder, ListBuffer}
25
26
import org.apache.spark.SparkException
@@ -100,7 +98,7 @@ private[mllib] object NumericParser {
100
98
}
101
99
} else if (token == ")") {
102
parsing = false
103
- } else if (isBlank(token)){
+ } else if (token.trim.isEmpty){
104
// ignore whitespaces between delim chars, e.g. ", ["
105
} else {
106
// expecting a number
0 commit comments