diff options
author | Henry Saputra <hsaputra@apache.org> | 2014-01-12 10:30:04 -0800 |
---|---|---|
committer | Henry Saputra <hsaputra@apache.org> | 2014-01-12 10:30:04 -0800 |
commit | 93a65e5fde64ffed3dbd2a050c1007e077ecd004 (patch) | |
tree | cdeb6db35029d0f12cbe2a4041cc785086fc4345 /yarn/common/src/test | |
parent | 26cdb5f68a83e904e3e9a114790c729ca2eb3040 (diff) | |
download | spark-93a65e5fde64ffed3dbd2a050c1007e077ecd004.tar.gz spark-93a65e5fde64ffed3dbd2a050c1007e077ecd004.tar.bz2 spark-93a65e5fde64ffed3dbd2a050c1007e077ecd004.zip |
Remove simple redundant return statement for Scala methods/functions:
-) Only change simple return statements at the end of method
-) Ignore the complex if-else check
-) Ignore the ones inside synchronized
Diffstat (limited to 'yarn/common/src/test')
-rw-r--r-- | yarn/common/src/test/scala/org/apache/spark/deploy/yarn/ClientDistributedCacheManagerSuite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yarn/common/src/test/scala/org/apache/spark/deploy/yarn/ClientDistributedCacheManagerSuite.scala b/yarn/common/src/test/scala/org/apache/spark/deploy/yarn/ClientDistributedCacheManagerSuite.scala index 2941356bc5..458df4fa3c 100644 --- a/yarn/common/src/test/scala/org/apache/spark/deploy/yarn/ClientDistributedCacheManagerSuite.scala +++ b/yarn/common/src/test/scala/org/apache/spark/deploy/yarn/ClientDistributedCacheManagerSuite.scala @@ -42,7 +42,7 @@ class ClientDistributedCacheManagerSuite extends FunSuite with MockitoSugar { class MockClientDistributedCacheManager extends ClientDistributedCacheManager { override def getVisibility(conf: Configuration, uri: URI, statCache: Map[URI, FileStatus]): LocalResourceVisibility = { - return LocalResourceVisibility.PRIVATE + LocalResourceVisibility.PRIVATE } } |