Skip to content

Commit

Permalink
[SPARK-8525][MLLIB] addressing comment, removing dep on commons-lang
Browse files Browse the repository at this point in the history
  • Loading branch information
fe2s committed Jun 23, 2015
1 parent c1abc2b commit 0755b9d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ package org.apache.spark.mllib.util

import java.util.StringTokenizer

import org.apache.commons.lang.StringUtils.isBlank

import scala.collection.mutable.{ArrayBuilder, ListBuffer}

import org.apache.spark.SparkException
Expand Down Expand Up @@ -100,7 +98,7 @@ private[mllib] object NumericParser {
}
} else if (token == ")") {
parsing = false
} else if (isBlank(token)){
} else if (token.trim.isEmpty){
// ignore whitespaces between delim chars, e.g. ", ["
} else {
// expecting a number
Expand Down

0 comments on commit 0755b9d

Please sign in to comment.