Browse Source

If we can use File.getParentFile, there is presumably no reason to use FileUtils.getParentFile, right?

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277173 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 20 years ago
parent
commit
13435b6628
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/main/org/apache/tools/ant/util/FileUtils.java

+ 3
- 2
src/main/org/apache/tools/ant/util/FileUtils.java View File

@@ -1030,12 +1030,13 @@ public class FileUtils {
} }


/** /**
* 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. * @param f the file whose parent is required.
* @return the given file's parent, or null if the file does not have a * @return the given file's parent, or null if the file does not have a
* parent. * parent.
* @since 1.10 * @since 1.10
* @deprecated Just use {@link File#getParentFile} directly.
*/ */
public File getParentFile(File f) { public File getParentFile(File f) {
return (f == null) ? null : f.getParentFile(); return (f == null) ? null : f.getParentFile();


Loading…
Cancel
Save