AAI-common sonar fixes
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / exceptions / AAIException.java
index bca4b48..320d563 100644 (file)
@@ -48,7 +48,7 @@ public class AAIException extends Exception {
     public AAIException() {
         super();
         this.code = DEFAULT_EXCEPTION_CODE;
-        this.templateVars = new LinkedList<String>();
+        this.templateVars = new LinkedList<>();
 
         try {
             this.errorObject = ErrorLogHelper.getErrorObject(getCode());
@@ -67,7 +67,7 @@ public class AAIException extends Exception {
         super();
 
         this.code = code;
-        this.templateVars = new LinkedList<String>();
+        this.templateVars = new LinkedList<>();
 
         try {
             this.errorObject = ErrorLogHelper.getErrorObject(getCode());
@@ -87,7 +87,7 @@ public class AAIException extends Exception {
         super(details);
 
         this.code = code;
-        this.templateVars = new LinkedList<String>();
+        this.templateVars = new LinkedList<>();
 
         try {
             this.errorObject = ErrorLogHelper.getErrorObject(getCode());
@@ -108,7 +108,7 @@ public class AAIException extends Exception {
         super(cause);
 
         this.code = code;
-        this.templateVars = new LinkedList<String>();
+        this.templateVars = new LinkedList<>();
 
         try {
             this.errorObject = ErrorLogHelper.getErrorObject(getCode());
@@ -129,7 +129,7 @@ public class AAIException extends Exception {
         super(details, cause);
 
         this.code = code;
-        this.templateVars = new LinkedList<String>();
+        this.templateVars = new LinkedList<>();
 
         try {
             this.errorObject = ErrorLogHelper.getErrorObject(getCode());