You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by js...@apache.org on 2006/05/21 07:57:53 UTC

svn commit: r408139 - /geronimo/branches/1.1/modules/kernel/src/java/org/apache/geronimo/kernel/config/IOUtil.java

Author: jsisson
Date: Sat May 20 22:57:53 2006
New Revision: 408139

URL: http://svn.apache.org/viewvc?rev=408139&view=rev
Log:
GERONIMO-2039 Fix typos

Modified:
    geronimo/branches/1.1/modules/kernel/src/java/org/apache/geronimo/kernel/config/IOUtil.java

Modified: geronimo/branches/1.1/modules/kernel/src/java/org/apache/geronimo/kernel/config/IOUtil.java
URL: http://svn.apache.org/viewvc/geronimo/branches/1.1/modules/kernel/src/java/org/apache/geronimo/kernel/config/IOUtil.java?rev=408139&r1=408138&r2=408139&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/kernel/src/java/org/apache/geronimo/kernel/config/IOUtil.java (original)
+++ geronimo/branches/1.1/modules/kernel/src/java/org/apache/geronimo/kernel/config/IOUtil.java Sat May 20 22:57:53 2006
@@ -42,14 +42,14 @@
 public class IOUtil {
     public static void recursiveCopy(File srcDir, File destDir) throws IOException {
         if (srcDir == null)  throw new NullPointerException("sourceDir is null");
-        if (srcDir == null)  throw new NullPointerException("destDir is null");
+        if (destDir == null)  throw new NullPointerException("destDir is null");
         if (!srcDir.isDirectory() || ! srcDir.canRead()) {
             throw new IllegalArgumentException("Source directory must be a readable directory " + srcDir);
         }
         if (destDir.exists()) {
             throw new IllegalArgumentException("Destination directory already exists " + destDir);
         }
-        if (destDir.equals(destDir)) {
+        if (srcDir.equals(destDir)) {
             throw new IllegalArgumentException("Source and destination directory are the same " + srcDir);
         }