geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsis...@apache.org
Subject svn commit: r408139 - /geronimo/branches/1.1/modules/kernel/src/java/org/apache/geronimo/kernel/config/IOUtil.java
Date Sun, 21 May 2006 05:57:53 GMT
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);
         }
 



Mime
View raw message