diff options
author | Souljoy Zhuo <zhuoshoujie@126.com> | 2017-01-24 11:33:17 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2017-01-24 11:33:17 +0000 |
commit | cca8680047bb2ec312ffc296a561abd5cbc8323c (patch) | |
tree | f57fd23f8ad8257215cb2d38ab20f9fc0d3a68db /mllib/src | |
parent | 7c61c2a1c40629311b84dff8d91b257efb345d07 (diff) | |
download | spark-cca8680047bb2ec312ffc296a561abd5cbc8323c.tar.gz spark-cca8680047bb2ec312ffc296a561abd5cbc8323c.tar.bz2 spark-cca8680047bb2ec312ffc296a561abd5cbc8323c.zip |
delete useless var “j”
the var “j” defined in "var j = 0" is useless for “def compress”
Author: Souljoy Zhuo <zhuoshoujie@126.com>
Closes #16676 from xiaoyesoso/patch-1.
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala b/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala index 995780bf64..97c8655298 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/recommendation/ALS.scala @@ -1038,14 +1038,12 @@ object ALS extends DefaultParamsReadable[ALS] with Logging { uniqueSrcIdsBuilder += preSrcId var curCount = 1 var i = 1 - var j = 0 while (i < sz) { val srcId = srcIds(i) if (srcId != preSrcId) { uniqueSrcIdsBuilder += srcId dstCountsBuilder += curCount preSrcId = srcId - j += 1 curCount = 0 } curCount += 1 |