ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/util FileUtils.java
Date Fri, 10 Dec 2004 23:18:22 GMT
jglick      2004/12/10 15:18:22

  Modified:    src/main/org/apache/tools/ant/util FileUtils.java
  Log:
  If we can use File.getParentFile, there is presumably no reason to use FileUtils.getParentFile,
right?
  
  Revision  Changes    Path
  1.76      +4 -3      ant/src/main/org/apache/tools/ant/util/FileUtils.java
  
  Index: FileUtils.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/FileUtils.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- FileUtils.java	7 Dec 2004 23:32:31 -0000	1.75
  +++ FileUtils.java	10 Dec 2004 23:18:22 -0000	1.76
  @@ -1030,12 +1030,13 @@
       }
   
       /**
  -     * This was originally an emulation of File.getParentFile for JDK 1.1,
  -     * but it is now implemented using that method (Ant1.7 onwards).
  +     * This was originally an emulation of {@link File#getParentFile} for JDK 1.1,
  +     * but it is now implemented using that method (Ant 1.7 onwards).
        * @param f the file whose parent is required.
        * @return the given file's parent, or null if the file does not have a
        *         parent.
        * @since 1.10
  +     * @deprecated Just use {@link File#getParentFile} directly.
        */
       public File getParentFile(File f) {
           return (f == null) ? null : f.getParentFile();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message