Replace explicit type with <>

This commit is contained in:
Thibault Meyer committed 2016-11-06 10:00:12 +01:00
1 parent 2a6d38eef2
commit 969a3c8b8d
291 files changed
+743 -743

No files matched your search

@@ -20,7 +20,7 @@ public class TestJsonExcludeEmptyList {
bean.setId(99);
bean.setStatus(null);
bean.setOrderDate(null);
bean.setDetails(new ArrayList<OrderDetail>());
bean.setDetails(new ArrayList<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_NULL);
@@ -39,7 +39,7 @@ public class TestJsonExcludeEmptyList {
bean.setId(99);
bean.setStatus(null);
bean.setOrderDate(null);
bean.setDetails(new ArrayList<OrderDetail>());
bean.setDetails(new ArrayList<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_EMPTY);
@@ -17,7 +17,7 @@ public class TestJsonExcludeEmptyMap {
EBasicJsonMap bean = new EBasicJsonMap();
bean.setId(99L);
bean.setContent(new LinkedHashMap<String, Object>());
bean.setContent(new LinkedHashMap<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_NULL);
@@ -34,7 +34,7 @@ public class TestJsonExcludeEmptyMap {
EBasicJsonMap bean = new EBasicJsonMap();
bean.setId(99L);
bean.setContent(new LinkedHashMap<String, Object>());
bean.setContent(new LinkedHashMap<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_EMPTY);
@@ -18,7 +18,7 @@ public class TestJsonExcludeEmptySet {
AttributeHolder bean = new AttributeHolder();
bean.setId(99);
bean.setAttributes(new LinkedHashSet<Attribute>());
bean.setAttributes(new LinkedHashSet<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_NULL);
@@ -35,7 +35,7 @@ public class TestJsonExcludeEmptySet {
AttributeHolder bean = new AttributeHolder();
bean.setId(99);
bean.setAttributes(new LinkedHashSet<Attribute>());
bean.setAttributes(new LinkedHashSet<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_EMPTY);
@@ -20,7 +20,7 @@ public class TestJsonExcludeTransientEmptyList {
EJsonTransientList bean = new EJsonTransientList();
bean.setId(99L);
bean.setFileNames(new ArrayList<String>());
bean.setFileNames(new ArrayList<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_NULL);
@@ -37,7 +37,7 @@ public class TestJsonExcludeTransientEmptyList {
EJsonTransientList bean = new EJsonTransientList();
bean.setId(99L);
bean.setFileNames(new ArrayList<String>());
bean.setFileNames(new ArrayList<>());
JsonWriteOptions options = new JsonWriteOptions();
options.setInclude(JsonConfig.Include.NON_EMPTY);