From 7136e9a83d131d0618c2a340d80079dcf8ae3c3b Mon Sep 17 00:00:00 2001 From: Driptaroop Das Date: Thu, 24 Jan 2019 16:45:41 +0530 Subject: update anonymous inner classes with lambdas update anonymous inner classes of some files with lambdas Issue-ID: AAF-731 Change-Id: Ifc37d1aef4017943a5d33ee7c89ca919df474436 Signed-off-by: Driptaroop Das --- auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Cmd.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'auth/auth-cmd') diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Cmd.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Cmd.java index 0597640f..49fd4869 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Cmd.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Cmd.java @@ -358,12 +358,7 @@ public abstract class Cmd { // Save Server time by Sorting locally List items = history.getItem(); - java.util.Collections.sort(items, new Comparator() { - @Override - public int compare(Item o1, Item o2) { - return o2.getTimestamp().compare(o1.getTimestamp()); - } - }); + java.util.Collections.sort(items, (Comparator) (o1, o2) -> o2.getTimestamp().compare(o1.getTimestamp())); for (History.Item item : items) { GregorianCalendar gc = item.getTimestamp().toGregorianCalendar(); -- cgit 1.2.3-korg