From 13435b6628d6de511f2bea4784a2f8a10c7173cf Mon Sep 17 00:00:00 2001 From: "Jesse N. Glick" Date: Fri, 10 Dec 2004 23:18:22 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/util/FileUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java index e02967326..961f948aa 100644 --- a/src/main/org/apache/tools/ant/util/FileUtils.java +++ b/src/main/org/apache/tools/ant/util/FileUtils.java @@ -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. * @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();