spark-instrumented-optimizer/project
Sean Owen e26dac5feb [SPARK-21415] Triage scapegoat warnings, part 1
## What changes were proposed in this pull request?

Address scapegoat warnings for:
- BigDecimal double constructor
- Catching NPE
- Finalizer without super
- List.size is O(n)
- Prefer Seq.empty
- Prefer Set.empty
- reverse.map instead of reverseMap
- Type shadowing
- Unnecessary if condition.
- Use .log1p
- Var could be val

In some instances like Seq.empty, I avoided making the change even where valid in test code to keep the scope of the change smaller. Those issues are concerned with performance and it won't matter for tests.

## How was this patch tested?

Existing tests

Author: Sean Owen <sowen@cloudera.com>

Closes #18635 from srowen/Scapegoat1.
2017-07-18 08:47:17 +01:00
..
build.properties [SPARK-18638][BUILD] Upgrade sbt, Zinc, and Maven plugins 2016-12-03 10:36:19 +00:00
MimaBuild.scala [SPARK-18638][BUILD] Upgrade sbt, Zinc, and Maven plugins 2016-12-03 10:36:19 +00:00
MimaExcludes.scala [SPARK-19937] Collect metrics for remote bytes read to disk during shuffle. 2017-06-22 14:10:51 -07:00
plugins.sbt [SPARK-18697][BUILD] Upgrade sbt plugins 2016-12-09 14:13:01 +08:00
SparkBuild.scala [SPARK-21415] Triage scapegoat warnings, part 1 2017-07-18 08:47:17 +01:00