summaryrefslogtreecommitdiffstats
path: root/auth/auth-cmd
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-01-30 12:07:06 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-30 12:07:06 +0000
commitd0e74aef834309b6fe8816de5035582445616ddf (patch)
treed22d0eab16a06daf3bb635e4e44b8d7b8b0cbac5 /auth/auth-cmd
parenta95fc2d8cddfda9e3ab4821a41077c0428b9b014 (diff)
parent7136e9a83d131d0618c2a340d80079dcf8ae3c3b (diff)
Merge "update anonymous inner classes with lambdas"
Diffstat (limited to 'auth/auth-cmd')
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Cmd.java7
1 files changed, 1 insertions, 6 deletions
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<Item> items = history.getItem();
- java.util.Collections.sort(items, new Comparator<Item>() {
- @Override
- public int compare(Item o1, Item o2) {
- return o2.getTimestamp().compare(o1.getTimestamp());
- }
- });
+ java.util.Collections.sort(items, (Comparator<Item>) (o1, o2) -> o2.getTimestamp().compare(o1.getTimestamp()));
for (History.Item item : items) {
GregorianCalendar gc = item.getTimestamp().toGregorianCalendar();