spark-instrumented-optimizer/common
Dongjoon Hyun c3689bc24e [SPARK-13702][CORE][SQL][MLLIB] Use diamond operator for generic instance creation in Java code.
## What changes were proposed in this pull request?

In order to make `docs/examples` (and other related code) more simple/readable/user-friendly, this PR replaces existing codes like the followings by using `diamond` operator.

```
-    final ArrayList<Product2<Object, Object>> dataToWrite =
-      new ArrayList<Product2<Object, Object>>();
+    final ArrayList<Product2<Object, Object>> dataToWrite = new ArrayList<>();
```

Java 7 or higher supports **diamond** operator which replaces the type arguments required to invoke the constructor of a generic class with an empty set of type parameters (<>). Currently, Spark Java code use mixed usage of this.

## How was this patch tested?

Manual.
Pass the existing tests.

Author: Dongjoon Hyun <dongjoon@apache.org>

Closes #11541 from dongjoon-hyun/SPARK-13702.
2016-03-09 10:31:26 +00:00
..
network-common [SPARK-13702][CORE][SQL][MLLIB] Use diamond operator for generic instance creation in Java code. 2016-03-09 10:31:26 +00:00
network-shuffle [SPARK-13583][CORE][STREAMING] Remove unused imports and add checkstyle rule 2016-03-03 10:12:32 +00:00
network-yarn [SPARK-13529][BUILD] Move network/* modules into common/network-* 2016-02-28 17:25:07 -08:00
sketch [MINOR][SQL] Fix modifier order. 2016-02-26 17:11:19 +00:00
tags [SPARK-13548][BUILD] Move tags and unsafe modules into common 2016-03-01 15:39:13 -08:00
unsafe [SPARK-13692][CORE][SQL] Fix trivial Coverity/Checkstyle defects 2016-03-09 10:12:23 +00:00