karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [karaf] branch karaf-4.2.x updated: [KARAF-6235] Use System.currentTimeMillis()
Date Sat, 13 Apr 2019 16:00:27 GMT
This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.2.x by this push:
     new a06bec1  [KARAF-6235] Use System.currentTimeMillis()
a06bec1 is described below

commit a06bec11f0417118f2c8c72eedb86d2453a8039e
Author: bd2019us <bd2019us@126.com>
AuthorDate: Fri Apr 12 15:16:45 2019 -0500

    [KARAF-6235] Use System.currentTimeMillis()
---
 .../java/org/apache/karaf/maven/command/MavenConfigurationSupport.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven/core/src/main/java/org/apache/karaf/maven/command/MavenConfigurationSupport.java
b/maven/core/src/main/java/org/apache/karaf/maven/command/MavenConfigurationSupport.java
index af38863..e95d823 100644
--- a/maven/core/src/main/java/org/apache/karaf/maven/command/MavenConfigurationSupport.java
+++ b/maven/core/src/main/java/org/apache/karaf/maven/command/MavenConfigurationSupport.java
@@ -593,7 +593,7 @@ public abstract class MavenConfigurationSupport implements Action {
             List<String> names = new ArrayList<>(Arrays.stream(files).map(File::getName)
                     .collect(TreeSet<String>::new, TreeSet::add, TreeSet::addAll));
 
-            names.add(String.format(fileNameFormat, new Date().getTime()));
+            names.add(String.format(fileNameFormat, System.currentTimeMillis()));
 
             while (names.size() > MAX_SEQUENCE_SIZE) {
                 String name = names.remove(0);


Mime
View raw message