Author: peterreilly Date: Wed Sep 19 07:05:07 2007 New Revision: 577307 URL: http://svn.apache.org/viewvc?rev=577307&view=rev Log: checkstyle
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java?rev=577307&r1=577306&r2=577307&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java Wed Sep 19 07:05:07 2007 @@ -52,7 +52,6 @@ import org.apache.tools.ant.taskdefs.Execute; import org.apache.tools.ant.taskdefs.LogOutputStream; import org.apache.tools.ant.types.FileSet; -import org.apache.tools.ant.types.Commandline; import org.apache.tools.ant.util.FileUtils; /** @@ -396,15 +395,13 @@ * * @param linkfil A <code>File</code> object of the symlink to delete. * - * @throws FileNotFoundException When the path results in a - * <code>File</code> that doesn't exist. * @throws IOException If calls to <code>File.rename</code>, * <code>File.delete</code> or * <code>File.getCanonicalPath</code> * fail. */ public static void deleteSymlink(File linkfil) - throws IOException{ + throws IOException { if (!linkfil.exists()) { throw new FileNotFoundException("No such symlink: " + linkfil); } @@ -495,7 +492,8 @@ } catch (FileNotFoundException fnfe) { log("Symlink disappeared before it was deleted: " + lnk); } catch (IOException ioe) { - log("Unable to overwrite preexisting link or file: " + lnk,ioe, Project.MSG_INFO); + log("Unable to overwrite preexisting link or file: " + lnk, + ioe, Project.MSG_INFO); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]