Merge "Reorder modifiers"
[so.git] / asdc-controller / src / main / java / org / openecomp / mso / asdc / util / NotificationLogging.java
index c0a1f53..617eefb 100644 (file)
@@ -35,7 +35,7 @@ import java.util.List;
 import java.util.Map;
 
 import org.openecomp.mso.logger.MsoLogger;
-import org.openecomp.sdc.api.notification.INotificationData;
+import org.onap.sdc.api.notification.INotificationData;
 
 
 public class NotificationLogging implements InvocationHandler {
@@ -43,19 +43,15 @@ public class NotificationLogging implements InvocationHandler {
        private static Map<Object, List<Method>> objectMethodsToLog = new HashMap<>();
 
        protected static final MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.ASDC);
-       
-       private static InvocationHandler handler = new InvocationHandler() {
-               @Override
-               public Object invoke(Object arg0, Method arg1, Object[] arg2)
-                               throws Throwable {
-                       List<Method> methods = objectMethodsToLog.get(arg0);
-                       if ((methods == null) || (methods.isEmpty())) {
-                               // Do nothing for now...
-                               return null;
-                       }
-                       methods.add(arg1);
-                       return arg1.invoke(arg0, arg2);
+
+       private static InvocationHandler handler = (arg0, arg1, arg2) -> {
+               List<Method> methods = objectMethodsToLog.get(arg0);
+               if ((methods == null) || (methods.isEmpty())) {
+                       // Do nothing for now...
+                       return null;
                }
+               methods.add(arg1);
+               return arg1.invoke(arg0, arg2);
        };
        
        public static InvocationHandler getHandler() {