aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorZheng RuiFeng <ruifengz@foxmail.com>2016-10-21 09:49:37 +0100
committerSean Owen <sowen@cloudera.com>2016-10-21 09:49:37 +0100
commita8ea4da8d04c1ed621a96668118f20739145edd2 (patch)
treedd869c7ed750828e9efc936e1963e5ae571a6df8 /build
parent595893d33a26c838c8c5c0c599fbee7fa61cbdff (diff)
downloadspark-a8ea4da8d04c1ed621a96668118f20739145edd2.tar.gz
spark-a8ea4da8d04c1ed621a96668118f20739145edd2.tar.bz2
spark-a8ea4da8d04c1ed621a96668118f20739145edd2.zip
[SPARK-17331][FOLLOWUP][ML][CORE] Avoid allocating 0-length arrays
## What changes were proposed in this pull request? `Array[T]()` -> `Array.empty[T]` to avoid allocating 0-length arrays. Use regex `find . -name '*.scala' | xargs -i bash -c 'egrep "Array\[[A-Za-z]+\]\(\)" -n {} && echo {}'` to find modification candidates. cc srowen ## How was this patch tested? existing tests Author: Zheng RuiFeng <ruifengz@foxmail.com> Closes #15564 from zhengruifeng/avoid_0_length_array.
Diffstat (limited to 'build')
0 files changed, 0 insertions, 0 deletions