summaryrefslogtreecommitdiffstats
path: root/feature-lifecycle
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2021-02-22 15:50:39 +0000
committerGerrit Code Review <gerrit@onap.org>2021-02-22 15:50:39 +0000
commitd6d322e8ce345677c9c60e77253ddbcb86c1d096 (patch)
treeb19905d8259607b1ffac8fbb1183ee93b2104f9c /feature-lifecycle
parent2381590fc66aa088e0b016befaef09d21e618100 (diff)
parent9ca3f1b4c7891fab169d13f91434793c3a7a8678 (diff)
Merge "convert date to instant for statistics"
Diffstat (limited to 'feature-lifecycle')
-rw-r--r--feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
index a595877a..be45d1c9 100644
--- a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
+++ b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
@@ -22,9 +22,9 @@
package org.onap.policy.drools.lifecycle;
import java.lang.reflect.InvocationTargetException;
+import java.time.Instant;
import java.util.ArrayList;
import java.util.Collections;
-import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -597,7 +597,7 @@ public class LifecycleFsm implements Startable {
private PdpStatistics statisticsPayload() {
PdpStatistics updateStats = new PdpStatistics(stats);
- updateStats.setTimeStamp(new Date());
+ updateStats.setTimeStamp(Instant.now());
try {
BeanUtils.copyProperties(updateStats, PolicyEngineConstants.getManager().getStats());