mbenson     2005/08/05 15:40:23

  Modified:    src/main/org/apache/tools/ant/util ResourceUtils.java
  Log:
  remove unnecessary java.util.Date instantiation
  
  Revision  Changes    Path
  1.15      +2 -3      ant/src/main/org/apache/tools/ant/util/ResourceUtils.java
  
  Index: ResourceUtils.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/util/ResourceUtils.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ResourceUtils.java        24 Jan 2005 23:38:41 -0000      1.14
  +++ ResourceUtils.java        5 Aug 2005 22:40:23 -0000       1.15
  @@ -79,14 +79,13 @@
                                                       FileNameMapper mapper,
                                                       ResourceFactory targets,
                                                       long granularity) {
  -        long now = (new java.util.Date()).getTime() + granularity;
  +        long now = System.currentTimeMillis() + granularity;
   
           Vector vresult = new Vector();
           for (int counter = 0; counter < source.length; counter++) {
               if (source[counter].getLastModified() > now) {
                   logTo.log("Warning: " + source[counter].getName()
  -                         + " modified in the future.",
  -                         Project.MSG_WARN);
  +                         + " modified in the future.", Project.MSG_WARN);
               }
               String[] targetnames =
                   mapper.mapFileName(source[counter].getName()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to