spark-instrumented-optimizer/examples/src/main
Kazuaki Ishizaki 79b05481a2 [SPARK-26508][CORE][SQL] Address warning messages in Java reported at lgtm.com
## What changes were proposed in this pull request?

This PR addresses warning messages in Java files reported at [lgtm.com](https://lgtm.com).

[lgtm.com](https://lgtm.com) provides automated code review of Java/Python/JavaScript files for OSS projects. [Here](https://lgtm.com/projects/g/apache/spark/alerts/?mode=list&severity=warning) are warning messages regarding Apache Spark project.

This PR addresses the following warnings:

- Result of multiplication cast to wider type
- Implicit narrowing conversion in compound assignment
- Boxed variable is never null
- Useless null check

NOTE: `Potential input resource leak` looks false positive for now.

## How was this patch tested?

Existing UTs

Closes #23420 from kiszk/SPARK-26508.

Authored-by: Kazuaki Ishizaki <ishizaki@jp.ibm.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
2019-01-01 22:37:28 -06:00
..
java/org/apache/spark/examples [SPARK-26508][CORE][SQL] Address warning messages in Java reported at lgtm.com 2019-01-01 22:37:28 -06:00
python [SPARK-26133][ML] Remove deprecated OneHotEncoder and rename OneHotEncoderEstimator to OneHotEncoder 2018-11-29 01:54:06 +00:00
r [SPARK-19827][R][FOLLOWUP] spark.ml R API for PIC 2018-12-12 09:03:13 -06:00
resources [SPARK-25656][SQL][DOC][EXAMPLE] Add a doc and examples about extra data source options 2018-10-23 12:41:20 -07:00
scala/org/apache/spark/examples [SPARK-26285][CORE] accumulator metrics sources for LongAccumulator and Doub… 2018-12-22 09:03:02 -06:00