Replace explicit type with diamond notation 03/34603/2
authorMunir Ahmad <munir.ahmad@bell.ca>
Thu, 8 Mar 2018 00:06:52 +0000 (19:06 -0500)
committerMunir Ahmad <munir.ahmad@bell.ca>
Thu, 8 Mar 2018 02:09:00 +0000 (02:09 +0000)
Change-Id: Ibcd42f05c7850e536759207a4d316396956da05b
Issue-ID: SO-437
Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/vdu/utils/VduInfoTest.java

index 4a29c32..98a0003 100644 (file)
@@ -66,7 +66,7 @@ public class VduInfoTest {
     public void testGetOutputs() {
         Object obj = new Object();
         String str = "some text";
-        outputs = new HashMap<String, Object>();
+        outputs = new HashMap<>();
         outputs.put(str, obj);
         vduInfo.setOutputs(outputs);
         Assert.assertNotNull(vduInfo.getOutputs());
@@ -78,7 +78,7 @@ public class VduInfoTest {
     public void testGetInputs() {
         Object obj = new Object();
         String str = "some text";
-        inputs = new HashMap<String, Object>();
+        inputs = new HashMap<>();
         inputs.put(str, obj);
         vduInfo.setInputs(inputs);
         Assert.assertNotNull(vduInfo.getInputs());