Skip to content

Commit 0755b9d

Browse files
committed
[SPARK-8525][MLLIB] addressing comment, removing dep on commons-lang
1 parent c1abc2b commit 0755b9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mllib/src/main/scala/org/apache/spark/mllib/util/NumericParser.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ package org.apache.spark.mllib.util
1919

2020
import java.util.StringTokenizer
2121

22-
import org.apache.commons.lang.StringUtils.isBlank
23-
2422
import scala.collection.mutable.{ArrayBuilder, ListBuffer}
2523

2624
import org.apache.spark.SparkException
@@ -100,7 +98,7 @@ private[mllib] object NumericParser {
10098
}
10199
} else if (token == ")") {
102100
parsing = false
103-
} else if (isBlank(token)){
101+
} else if (token.trim.isEmpty){
104102
// ignore whitespaces between delim chars, e.g. ", ["
105103
} else {
106104
// expecting a number

0 commit comments

Comments
 (0)