From 7a3a92244477e0b4f165657eeea9de3921cb3400 Mon Sep 17 00:00:00 2001 From: rama-huawei Date: Fri, 22 Sep 2017 21:21:03 +0530 Subject: Replaced with Diamond symbol Removed useless parentheses Issue-Id:SO-118 Change-Id: I79c55aebe53e82bc649c4524e5a1029a5b7a496f Signed-off-by: rama-huawei --- .../src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCEvent.java | 4 ++-- .../java/org/openecomp/mso/adapters/sdncrest/SDNCServiceResponse.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'adapters/mso-adapters-rest-interface') diff --git a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCEvent.java b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCEvent.java index 9b9c214129..c4e22e0680 100644 --- a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCEvent.java +++ b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCEvent.java @@ -135,7 +135,7 @@ public class SDNCEvent implements Serializable { public void addParam(String name, String value) { if (params == null) { - params = new LinkedHashMap(); + params = new LinkedHashMap<>(); } params.put(name, value); } @@ -152,4 +152,4 @@ public class SDNCEvent implements Serializable { + getClass().getSimpleName() + " to JSON", e); } } -} \ No newline at end of file +} diff --git a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceResponse.java b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceResponse.java index 818b916c6f..65d8a25dff 100644 --- a/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceResponse.java +++ b/adapters/mso-adapters-rest-interface/src/main/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceResponse.java @@ -84,8 +84,8 @@ public class SDNCServiceResponse extends SDNCResponseCommon implements Serializa public void addParam(String name, String value) { if (params == null) { - params = new LinkedHashMap(); + params = new LinkedHashMap<>(); } params.put(name, value); } -} \ No newline at end of file +} -- cgit 1.2.3-korg