Replace type specification 67/85867/1
authorSindhuri.A <arcot.sindhuri@huawei.com>
Sat, 20 Apr 2019 04:23:54 +0000 (09:53 +0530)
committerSindhuri.A <arcot.sindhuri@huawei.com>
Sat, 20 Apr 2019 04:23:54 +0000 (09:53 +0530)
Replace type specification sdno beans and openpojo rules classes

Issue-ID: SO-1490

Change-Id: I0076da23e467e178159b404335d3990a9adf301f
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
common/src/main/java/org/onap/so/client/sdno/beans/Input.java
common/src/main/java/org/onap/so/client/sdno/beans/RequestHdCustom.java
common/src/main/java/org/onap/so/openpojo/rules/HasAnnotationMatcher.java
common/src/main/java/org/onap/so/openpojo/rules/HasAnnotationPropertyWithValueMatcher.java

index ea537bb..c8122c0 100644 (file)
@@ -40,7 +40,7 @@ public class Input implements Serializable {
     private RequestHdCustom requestHdCustom;
 
     @JsonIgnore
-    private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+    private Map<String, Object> additionalProperties = new HashMap<>();
     private final static long serialVersionUID = 7155546785389227528L;
 
     @JsonProperty("request-healthdiagnostic")
index c08d1ef..485f646 100644 (file)
@@ -49,7 +49,7 @@ public class RequestHdCustom implements Serializable {
     @JsonProperty("send-detailed-cmd-response")
     private String sendDetailedCmdResponse = "false";
     @JsonProperty("aai-param-list")
-    private List<AAIParamList> aaiParamList = new ArrayList<AAIParamList>();
+    private List<AAIParamList> aaiParamList = new ArrayList<>();
 
     /**
      * No args constructor for use in serialization
index 9062f60..42dda85 100644 (file)
@@ -64,6 +64,6 @@ public class HasAnnotationMatcher<T extends PojoField> extends TypeSafeDiagnosin
 
     public static <T extends PojoField> Matcher<T> hasAnnotation(final Class<? extends Annotation> annotationType,
             final Matcher<? super T> annotationMatcher) {
-        return new HasAnnotationMatcher<T>(annotationType, annotationMatcher);
+        return new HasAnnotationMatcher<>(annotationType, annotationMatcher);
     }
 }
index 8a47299..a55113b 100644 (file)
@@ -78,6 +78,6 @@ public class HasAnnotationPropertyWithValueMatcher<T extends PojoField> extends
 
     public static <T extends PojoField> Matcher<T> hasAnnotationPropertyWithValue(Class<? extends Annotation> clazz,
             String attribute, final Matcher<?> annotationMatcher) {
-        return new HasAnnotationPropertyWithValueMatcher<T>(clazz, attribute, annotationMatcher);
+        return new HasAnnotationPropertyWithValueMatcher<>(clazz, attribute, annotationMatcher);
     }
 }