mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-28 23:28:55 +00:00
Replace explicit type with <>
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user