File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed
src/main/scala/org/apache/spark/util Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 6969 <groupId >com.google.guava</groupId >
7070 <artifactId >guava</artifactId >
7171 </dependency >
72+ <dependency >
73+ <groupId >org.apache.commons</groupId >
74+ <artifactId >commons-lang3</artifactId >
75+ </dependency >
7276 <dependency >
7377 <groupId >com.google.code.findbugs</groupId >
7478 <artifactId >jsr305</artifactId >
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import scala.util.Try
3232
3333import com .google .common .io .Files
3434import com .google .common .util .concurrent .ThreadFactoryBuilder
35+ import org .apache .commons .lang3 .SystemUtils
3536import org .apache .hadoop .fs .{FileSystem , FileUtil , Path }
3637import org .json4s ._
3738import tachyon .client .{TachyonFile ,TachyonFS }
@@ -1073,9 +1074,7 @@ private[spark] object Utils extends Logging {
10731074 /**
10741075 * Return true if this is Windows.
10751076 */
1076- def isWindows = {
1077- Option (System .getProperty(" os.name" )).exists(_.startsWith(" Windows" ))
1078- }
1077+ def isWindows = SystemUtils .IS_OS_WINDOWS ;
10791078
10801079 /**
10811080 * Indicates whether Spark is currently running unit tests.
Original file line number Diff line number Diff line change 221221 <artifactId >guava</artifactId >
222222 <version >14.0.1</version >
223223 </dependency >
224+ <dependency >
225+ <groupId >org.apache.commons</groupId >
226+ <artifactId >commons-lang3</artifactId >
227+ <version >3.3.2</version >
228+ </dependency >
224229 <dependency >
225230 <groupId >com.google.code.findbugs</groupId >
226231 <artifactId >jsr305</artifactId >
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ object SparkBuild extends Build {
326326 name := " spark-core" ,
327327 libraryDependencies ++= Seq (
328328 " com.google.guava" % " guava" % " 14.0.1" ,
329+ " org.apache.commons" % " commons-lang3" % " 3.3.2" ,
329330 " com.google.code.findbugs" % " jsr305" % " 1.3.9" ,
330331 " log4j" % " log4j" % " 1.2.17" ,
331332 " org.slf4j" % " slf4j-api" % slf4jVersion,
You can’t perform that action at this time.
0 commit comments