karaf-commits mailing list archives

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d3e89e4  [KARAF-6235] Use System.currentTimeMillis()
     new a00a032  Merge pull request #810 from bd2019us/KARAF-6235
d3e89e4 is described below

commit d3e89e4e95f5fa57eaf5be6ae9082dea5df1c107
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