Nexus: Staging Completed.

2012-06-12 Thread Nexus Repository Manager
Description:Close Commons 2.4-RC2.Details:The following artifacts have been staged to the org.apache.commons-231 (u:ggregory, a:98.180.79.15) repository.commons-io-2.4-javadoc.jarcommons-io-2.4.jar.asccommons-io-2.4.jarcommons-io-2.4-tests.jar.asccommons-io-2.4-tests.jarcommons-io-2.4-javadoc.jar.asccommons-io-2.4-test-sources.jar.asccommons-io-2.4-src.zip.asccommons-io-2.4.pom.asccommons-io-2.4.pomcommons-io-2.4-bin.zip.asccommons-io-2.4-sources.jar.asccommons-io-2.4-bin.zipcommons-io-2.4-test-sources.jarcommons-io-2.4-sources.jarcommons-io-2.4-bin.tar.gzcommons-io-2.4-src.tar.gzcommons-io-2.4-bin.tar.gz.asccommons-io-2.4-src.tar.gz.asccommons-io-2.4-src.ziparchetype-catalog.xml

svn commit: r1349569 - in /commons/proper/io/tags/2.4-RC2: ./ pom.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 22:18:36 2012
New Revision: 1349569

URL: http://svn.apache.org/viewvc?rev=1349569&view=rev
Log:
Create commons-io-2.4-RC2.

Added:
commons/proper/io/tags/2.4-RC2/
  - copied from r1349567, commons/proper/io/trunk/
Modified:
commons/proper/io/tags/2.4-RC2/pom.xml

Modified: commons/proper/io/tags/2.4-RC2/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/tags/2.4-RC2/pom.xml?rev=1349569&r1=1349567&r2=1349569&view=diff
==
--- commons/proper/io/tags/2.4-RC2/pom.xml (original)
+++ commons/proper/io/tags/2.4-RC2/pom.xml Tue Jun 12 22:18:36 2012
@@ -24,7 +24,7 @@
   4.0.0
   commons-io
   commons-io
-  2.4-SNAPSHOT
+  2.4
   Commons IO
 
   2002




svn commit: r1349568 - /commons/proper/io/tags/2.4-RC2/

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 22:18:27 2012
New Revision: 1349568

URL: http://svn.apache.org/viewvc?rev=1349568&view=rev
Log:
Removing RC that was never voted on

Removed:
commons/proper/io/tags/2.4-RC2/



svn commit: r1349567 - /commons/proper/io/trunk/RELEASE-NOTES.txt

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 22:16:48 2012
New Revision: 1349567

URL: http://svn.apache.org/viewvc?rev=1349567&view=rev
Log:
Preparing release 2.4-RC2.

Modified:
commons/proper/io/trunk/RELEASE-NOTES.txt

Modified: commons/proper/io/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/RELEASE-NOTES.txt?rev=1349567&r1=1349566&r2=1349567&view=diff
==
--- commons/proper/io/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/io/trunk/RELEASE-NOTES.txt Tue Jun 12 22:16:48 2012
@@ -30,6 +30,7 @@ o IO-325:  Add IOUtils.toByteArray metho
 o IO-324:  Add missing Charset sister APIs to method that take a String 
charset name. Thanks to raviprak. 
 
 Fixed Bugs:
+o IO-336:  Yottabyte (YB) incorrectly defined in FileUtils. Thanks to 
rleavelle. 
 o IO-279:  Tailer erroneously considers file as new. Thanks to Sergio Bossa, 
Chris Baron. 
 o IO-335:  Tailer#readLines - incorrect CR handling. 
 o IO-334:  FileUtils.toURLs throws NPE for null parameter; document the 
behavior. 




svn commit: r1349521 - /commons/proper/ognl/trunk/pom.xml

2012-06-12 Thread simonetripodi
Author: simonetripodi
Date: Tue Jun 12 20:55:34 2012
New Revision: 1349521

URL: http://svn.apache.org/viewvc?rev=1349521&view=rev
Log:
updated parent reference to v25

Modified:
commons/proper/ognl/trunk/pom.xml

Modified: commons/proper/ognl/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/ognl/trunk/pom.xml?rev=1349521&r1=1349520&r2=1349521&view=diff
==
--- commons/proper/ognl/trunk/pom.xml (original)
+++ commons/proper/ognl/trunk/pom.xml Tue Jun 12 20:55:34 2012
@@ -22,7 +22,7 @@ limitations under the License.
  
org.apache.commons
commons-parent
-   22
+   25
  
 
   org.apache.commons




Nexus: Staging Repository Dropped.

2012-06-12 Thread Nexus Repository Manager
Description:Drop Commons IO 2.4-RC2.Details:The org.apache.commons-230 (u:ggregory, a:98.180.79.15) staging repository has been dropped.

svn commit: r1349509 - in /commons/proper/io/trunk/src: changes/changes.xml main/java/org/apache/commons/io/FileUtils.java

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 20:39:23 2012
New Revision: 1349509

URL: http://svn.apache.org/viewvc?rev=1349509&view=rev
Log:
[IO-336] Yottabyte (YB) incorrectly defined in FileUtils.

Modified:
commons/proper/io/trunk/src/changes/changes.xml
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

Modified: commons/proper/io/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/changes.xml?rev=1349509&r1=1349508&r2=1349509&view=diff
==
--- commons/proper/io/trunk/src/changes/changes.xml (original)
+++ commons/proper/io/trunk/src/changes/changes.xml Tue Jun 12 20:39:23 2012
@@ -47,6 +47,9 @@ The  type attribute can be add,u
   
 
 
+  
+Yottabyte (YB) incorrectly defined in FileUtils.
+  
   
 Tailer locks file from deletion/rename on Windows.
   

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1349509&r1=1349508&r2=1349509&view=diff
==
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
Tue Jun 12 20:39:23 2012
@@ -167,7 +167,7 @@ public class FileUtils {
 /**
  * The number of bytes in a yottabyte.
  */
-public static final BigInteger ONE_YB = 
ONE_ZB.multiply(BigInteger.valueOf(ONE_EB));
+public static final BigInteger ONE_YB = ONE_KB_BI.multiply(ONE_ZB);
 
 /**
  * An empty array of type File.




Nexus: Staging Completed.

2012-06-12 Thread Nexus Repository Manager
Description:Close Commons IO 2.4-RC2.Details:The following artifacts have been staged to the org.apache.commons-230 (u:ggregory, a:98.180.79.15) repository.commons-io-2.4-javadoc.jarcommons-io-2.4.jar.asccommons-io-2.4.jarcommons-io-2.4-tests.jar.asccommons-io-2.4-tests.jarcommons-io-2.4-javadoc.jar.asccommons-io-2.4-test-sources.jar.asccommons-io-2.4-src.zip.asccommons-io-2.4.pom.asccommons-io-2.4.pomcommons-io-2.4-bin.zip.asccommons-io-2.4-sources.jar.asccommons-io-2.4-bin.zipcommons-io-2.4-test-sources.jarcommons-io-2.4-sources.jarcommons-io-2.4-bin.tar.gzcommons-io-2.4-src.tar.gzcommons-io-2.4-bin.tar.gz.asccommons-io-2.4-src.tar.gz.asccommons-io-2.4-src.ziparchetype-catalog.xml

Nexus: Staging Repository Dropped.

2012-06-12 Thread Nexus Repository Manager
Description:Drop Commons IO 2.4-RC1.Details:The org.apache.commons-228 (u:ggregory, a:98.180.79.15) staging repository has been dropped.

svn commit: r1349498 - in /commons/proper/io/tags/2.4-RC2: ./ RELEASE-NOTES.txt pom.xml src/changes/changes.xml src/main/java/org/apache/commons/io/FileUtils.java src/test/java/org/apache/commons/io/F

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 19:48:47 2012
New Revision: 1349498

URL: http://svn.apache.org/viewvc?rev=1349498&view=rev
Log:
Create commons-io-2.4-RC2.

Added:
commons/proper/io/tags/2.4-RC2/
  - copied from r1349401, commons/proper/io/trunk/
commons/proper/io/tags/2.4-RC2/RELEASE-NOTES.txt
  - copied unchanged from r1349493, 
commons/proper/io/trunk/RELEASE-NOTES.txt
commons/proper/io/tags/2.4-RC2/pom.xml
  - copied, changed from r1349494, commons/proper/io/trunk/pom.xml
commons/proper/io/tags/2.4-RC2/src/changes/changes.xml
  - copied unchanged from r1349491, 
commons/proper/io/trunk/src/changes/changes.xml

commons/proper/io/tags/2.4-RC2/src/main/java/org/apache/commons/io/FileUtils.java
  - copied unchanged from r1349488, 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

commons/proper/io/tags/2.4-RC2/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
  - copied unchanged from r1349488, 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java

Copied: commons/proper/io/tags/2.4-RC2/pom.xml (from r1349494, 
commons/proper/io/trunk/pom.xml)
URL: 
http://svn.apache.org/viewvc/commons/proper/io/tags/2.4-RC2/pom.xml?p2=commons/proper/io/tags/2.4-RC2/pom.xml&p1=commons/proper/io/trunk/pom.xml&r1=1349494&r2=1349498&rev=1349498&view=diff
==
--- commons/proper/io/trunk/pom.xml (original)
+++ commons/proper/io/tags/2.4-RC2/pom.xml Tue Jun 12 19:48:47 2012
@@ -24,7 +24,7 @@
   4.0.0
   commons-io
   commons-io
-  2.4-SNAPSHOT
+  2.4
   Commons IO
 
   2002




svn commit: r1349495 - /commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/BeanProperties.java

2012-06-12 Thread simonetripodi
Author: simonetripodi
Date: Tue Jun 12 19:47:49 2012
New Revision: 1349495

URL: http://svn.apache.org/viewvc?rev=1349495&view=rev
Log:
dropped useless modifiers (thanks Bene)

Modified:

commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/BeanProperties.java

Modified: 
commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/BeanProperties.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/BeanProperties.java?rev=1349495&r1=1349494&r2=1349495&view=diff
==
--- 
commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/BeanProperties.java
 (original)
+++ 
commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/BeanProperties.java
 Tue Jun 12 19:47:49 2012
@@ -68,7 +68,7 @@ public interface BeanProperties
  * @throws IntrospectionException
  * @throws NoSuchMethodException
  */
-public abstract PropertyDescriptor getPropertyDescriptor( String 
propertyName )
+PropertyDescriptor getPropertyDescriptor( String propertyName )
 throws IntrospectionException;
 
 /**
@@ -78,7 +78,7 @@ public interface BeanProperties
  * @throws IntrospectionException
  * @throws NoSuchMethodException
  */
-public abstract Method getReadPropertyMethod( String propertyName )
+Method getReadPropertyMethod( String propertyName )
 throws IntrospectionException, NoSuchMethodException;
 
 /**
@@ -88,7 +88,7 @@ public interface BeanProperties
  * @throws NoSuchMethodException
  * @throws IntrospectionException
  */
-public abstract Method getWriteMethod( String name )
+Method getWriteMethod( String name )
 throws NoSuchMethodException, IntrospectionException;
 
 /**
@@ -98,7 +98,7 @@ public interface BeanProperties
  * @throws NoSuchMethodException
  * @throws IntrospectionException
  */
-public abstract IndexedPropertyDescriptor getIndexedPropertyDescriptor( 
String propertyName )
+IndexedPropertyDescriptor getIndexedPropertyDescriptor( String 
propertyName )
 throws NoSuchMethodException, IntrospectionException;
 
 /**
@@ -108,7 +108,7 @@ public interface BeanProperties
  * @throws NoSuchMethodException
  * @throws IntrospectionException
  */
-public abstract Method getIndexedReadMethod( String propertyName )
+Method getIndexedReadMethod( String propertyName )
 throws NoSuchMethodException, IntrospectionException;
 
 /**
@@ -118,7 +118,7 @@ public interface BeanProperties
  * @throws NoSuchMethodException
  * @throws IntrospectionException
  */
-public abstract Method getIndexedWriteMethod( String propertyName )
+Method getIndexedWriteMethod( String propertyName )
 throws NoSuchMethodException, IntrospectionException;
 
 /**
@@ -126,7 +126,7 @@ public interface BeanProperties
  * @return
  * @throws IntrospectionException
  */
-public abstract Map getPropertiesIndex()
+Map getPropertiesIndex()
 throws IntrospectionException;
 
 }




svn commit: r1349494 - /commons/proper/io/trunk/pom.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 19:47:33 2012
New Revision: 1349494

URL: http://svn.apache.org/viewvc?rev=1349494&view=rev
Log:
Preparing release 2.4-RC2.

Modified:
commons/proper/io/trunk/pom.xml

Modified: commons/proper/io/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/pom.xml?rev=1349494&r1=1349493&r2=1349494&view=diff
==
--- commons/proper/io/trunk/pom.xml (original)
+++ commons/proper/io/trunk/pom.xml Tue Jun 12 19:47:33 2012
@@ -24,7 +24,7 @@
   4.0.0
   commons-io
   commons-io
-  2.4
+  2.4-SNAPSHOT
   Commons IO
 
   2002




svn commit: r1349493 - /commons/proper/io/trunk/RELEASE-NOTES.txt

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 19:46:55 2012
New Revision: 1349493

URL: http://svn.apache.org/viewvc?rev=1349493&view=rev
Log:
Preparing release 2.4-RC2.

Modified:
commons/proper/io/trunk/RELEASE-NOTES.txt

Modified: commons/proper/io/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/RELEASE-NOTES.txt?rev=1349493&r1=1349492&r2=1349493&view=diff
==
--- commons/proper/io/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/io/trunk/RELEASE-NOTES.txt Tue Jun 12 19:46:55 2012
@@ -25,7 +25,7 @@ o IO-333:  Export OSGi packages at versi
 o IO-320:  Add XmlStreamReader support for UTF-32. Thanks to ggregory. 
 o IO-331:  BOMInputStream wrongly detects UTF-32LE_BOM files as UTF-16LE_BOM 
files in method getBOM(). Thanks to ggregory. 
 o IO-327:  Add byteCountToDisplaySize(BigInteger). Thanks to ggregory. 
-o IO-326:  Add new FileUtils.sizeOf[Directory] APIs to return BigInteger. 
Thanks to ggregory. 
+o IO-326:  Add new FileUtils.sizeOf[Directory] APIs to return BigInteger. 
Thanks to ggregory, kinow. 
 o IO-325:  Add IOUtils.toByteArray methods to work with URL and URI. Thanks to 
raviprak. 
 o IO-324:  Add missing Charset sister APIs to method that take a String 
charset name. Thanks to raviprak. 
 




svn commit: r1349491 - /commons/proper/io/trunk/src/changes/changes.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 19:33:44 2012
New Revision: 1349491

URL: http://svn.apache.org/viewvc?rev=1349491&view=rev
Log:
[IO-326] Add new FileUtils.sizeOf[Directory] APIs to return BigInteger. Thanks 
to Bruno P. Kinoshita for the fix and test case.

Modified:
commons/proper/io/trunk/src/changes/changes.xml

Modified: commons/proper/io/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/changes.xml?rev=1349491&r1=1349490&r2=1349491&view=diff
==
--- commons/proper/io/trunk/src/changes/changes.xml (original)
+++ commons/proper/io/trunk/src/changes/changes.xml Tue Jun 12 19:33:44 2012
@@ -80,7 +80,7 @@ The  type attribute can be add,u
   
 Add byteCountToDisplaySize(BigInteger).
   
-  
+  
 Add new FileUtils.sizeOf[Directory] APIs to return BigInteger.
   
   




svn commit: r1349488 - in /commons/proper/io/trunk: pom.xml src/main/java/org/apache/commons/io/FileUtils.java src/test/java/org/apache/commons/io/FileUtilsTestCase.java

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 19:29:22 2012
New Revision: 1349488

URL: http://svn.apache.org/viewvc?rev=1349488&view=rev
Log:
[IO-326] Add new FileUtils.sizeOf[Directory] APIs to return BigInteger. Thanks 
to Bruno P. Kinoshita for the fix and test case.

Modified:
commons/proper/io/trunk/pom.xml
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java

Modified: commons/proper/io/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/pom.xml?rev=1349488&r1=1349487&r2=1349488&view=diff
==
--- commons/proper/io/trunk/pom.xml (original)
+++ commons/proper/io/trunk/pom.xml Tue Jun 12 19:29:22 2012
@@ -24,7 +24,7 @@
   4.0.0
   commons-io
   commons-io
-  2.4-SNAPSHOT
+  2.4
   Commons IO
 
   2002

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1349488&r1=1349487&r2=1349488&view=diff
==
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
Tue Jun 12 19:29:22 2012
@@ -2511,7 +2511,7 @@ public class FileUtils {
 for (final File file : files) {
 try {
 if (!isSymlink(file)) {
-size.add(BigInteger.valueOf(sizeOf(file)));
+size = size.add(BigInteger.valueOf(sizeOf(file)));
 }
 } catch (IOException ioe) {
 // Ignore exceptions caught when asking if a File is a symlink.

Modified: 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java?rev=1349488&r1=1349487&r2=1349488&view=diff
==
--- 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
 (original)
+++ 
commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
 Tue Jun 12 19:29:22 2012
@@ -64,6 +64,11 @@ public class FileUtilsTestCase extends F
 private static final BigInteger TEST_DIRECTORY_SIZE_BI = BigInteger.ZERO;
 
 /**
+ * Size (greater of zero) of test file.
+ */
+private static final BigInteger TEST_DIRECTORY_SIZE_GT_ZERO_BI = 
BigInteger.valueOf(100);
+
+/**
  * List files recursively
  */
 private static final ListDirectoryWalker LIST_WALKER = new 
ListDirectoryWalker();
@@ -796,7 +801,8 @@ public class FileUtilsTestCase extends F
 try {
 FileUtils.sizeOfDirectoryAsBigInteger(file);
 fail("Exception expected.");
-} catch (IllegalArgumentException ex) {}
+} catch (IllegalArgumentException ex) {
+}
 
 // Creates file
 file.createNewFile();
@@ -806,7 +812,8 @@ public class FileUtilsTestCase extends F
 try {
 FileUtils.sizeOfDirectoryAsBigInteger(file);
 fail("Exception expected.");
-} catch (IllegalArgumentException ex) {}
+} catch (IllegalArgumentException ex) {
+}
 
 // Existing directory
 file.delete();
@@ -814,10 +821,21 @@ public class FileUtilsTestCase extends F
 
 this.createCircularSymLink(file);
 
-assertEquals(
-"Unexpected directory size",
-TEST_DIRECTORY_SIZE_BI,
-FileUtils.sizeOfDirectoryAsBigInteger(file));
+assertEquals("Unexpected directory size", TEST_DIRECTORY_SIZE_BI, 
FileUtils.sizeOfDirectoryAsBigInteger(file));
+
+// Existing directory which size is greater than zero
+file.delete();
+file.mkdir();
+
+File nonEmptyFile = new File(file, "nonEmptyFile" + System.nanoTime());
+this.createFile(nonEmptyFile, 
TEST_DIRECTORY_SIZE_GT_ZERO_BI.longValue());
+nonEmptyFile.deleteOnExit();
+
+assertEquals("Unexpected directory size", 
TEST_DIRECTORY_SIZE_GT_ZERO_BI,
+FileUtils.sizeOfDirectoryAsBigInteger(file));
+
+nonEmptyFile.delete();
+file.delete();
 }
 
 /**




Nexus: Staging Completed.

2012-06-12 Thread Nexus Repository Manager
Description:Closing Apache Commons IO 2.4-RC1.Details:The following artifacts have been staged to the org.apache.commons-228 (u:ggregory, a:98.180.79.15) repository.commons-io-2.4-javadoc.jarcommons-io-2.4.jar.asccommons-io-2.4.jarcommons-io-2.4-tests.jar.asccommons-io-2.4-tests.jarcommons-io-2.4-javadoc.jar.asccommons-io-2.4-test-sources.jar.asccommons-io-2.4-src.zip.asccommons-io-2.4.pom.asccommons-io-2.4.pomcommons-io-2.4-bin.zip.asccommons-io-2.4-sources.jar.asccommons-io-2.4-bin.zipcommons-io-2.4-test-sources.jarcommons-io-2.4-sources.jarcommons-io-2.4-bin.tar.gzcommons-io-2.4-src.tar.gzcommons-io-2.4-bin.tar.gz.asccommons-io-2.4-src.tar.gz.asccommons-io-2.4-src.ziparchetype-catalog.xml

svn commit: r1349402 - in /commons/proper/io/tags/2.4-RC1: ./ pom.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 15:40:18 2012
New Revision: 1349402

URL: http://svn.apache.org/viewvc?rev=1349402&view=rev
Log:
Create commons-io-2.4-RC1.

Added:
commons/proper/io/tags/2.4-RC1/
  - copied from r1349401, commons/proper/io/trunk/
Modified:
commons/proper/io/tags/2.4-RC1/pom.xml

Modified: commons/proper/io/tags/2.4-RC1/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/tags/2.4-RC1/pom.xml?rev=1349402&r1=1349401&r2=1349402&view=diff
==
--- commons/proper/io/tags/2.4-RC1/pom.xml (original)
+++ commons/proper/io/tags/2.4-RC1/pom.xml Tue Jun 12 15:40:18 2012
@@ -24,7 +24,7 @@
   4.0.0
   commons-io
   commons-io
-  2.4-SNAPSHOT
+  2.4
   Commons IO
 
   2002




svn commit: r1349399 - /commons/proper/io/trunk/RELEASE-NOTES.txt

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 15:37:26 2012
New Revision: 1349399

URL: http://svn.apache.org/viewvc?rev=1349399&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/RELEASE-NOTES.txt

Modified: commons/proper/io/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/RELEASE-NOTES.txt?rev=1349399&r1=1349398&r2=1349399&view=diff
==
--- commons/proper/io/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/io/trunk/RELEASE-NOTES.txt Tue Jun 12 15:37:26 2012
@@ -1,6 +1,6 @@
 
 Apache Commons IO 
-Version 2.3-SNAPSHOT
+Version 2.4
 Release Notes
 
 INTRODUCTION:
@@ -13,6 +13,48 @@ The Commons IO library contains utility 
 file comparators, endian transformation classes, and much more.
 
 ==
+Apache Commons IO Version 2.4
+==
+New features and bug fixes.
+
+Changes in this version include:
+
+New features:
+o IO-269:  Tailer locks file from deletion/rename on Windows. Thanks to sebb. 
+o IO-333:  Export OSGi packages at version 1.x in addition to 2.x. Thanks to 
fmeschbe. 
+o IO-320:  Add XmlStreamReader support for UTF-32. Thanks to ggregory. 
+o IO-331:  BOMInputStream wrongly detects UTF-32LE_BOM files as UTF-16LE_BOM 
files in method getBOM(). Thanks to ggregory. 
+o IO-327:  Add byteCountToDisplaySize(BigInteger). Thanks to ggregory. 
+o IO-326:  Add new FileUtils.sizeOf[Directory] APIs to return BigInteger. 
Thanks to ggregory. 
+o IO-325:  Add IOUtils.toByteArray methods to work with URL and URI. Thanks to 
raviprak. 
+o IO-324:  Add missing Charset sister APIs to method that take a String 
charset name. Thanks to raviprak. 
+
+Fixed Bugs:
+o IO-279:  Tailer erroneously considers file as new. Thanks to Sergio Bossa, 
Chris Baron. 
+o IO-335:  Tailer#readLines - incorrect CR handling. 
+o IO-334:  FileUtils.toURLs throws NPE for null parameter; document the 
behavior. 
+o IO-332:  Improve tailer's reading performance. Thanks to liangly. 
+o IO-279:  Improve Tailer performance with buffered reads (see IO-332). 
+o IO-329:  FileUtils.writeLines uses unbuffered IO. Thanks to tivv. 
+o IO-319:  FileUtils.sizeOfDirectory follows symbolic links. Thanks to 
raviprak. 
+
+
+Compatibility with 2.3:
+Binary compatible: Yes.
+Source compatible: Yes.
+Semantic compatible: Yes.
+
+Compatibility with 2.2 and 1.4:
+Binary compatible: Yes.
+Source compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
+Semantic compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
+
+Commons IO 2.4 requires JDK 1.6 or later.
+Commons IO 2.3 requires JDK 1.6 or later.
+Commons IO 2.2 requires JDK 1.5 or later.
+Commons IO 1.4 requires JDK 1.3 or later.
+
+==
 Apache Commons IO Version 2.3
 ==
 




svn commit: r1349397 - /commons/proper/io/trunk/src/site/xdoc/download_io.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 15:36:51 2012
New Revision: 1349397

URL: http://svn.apache.org/viewvc?rev=1349397&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/src/site/xdoc/download_io.xml

Modified: commons/proper/io/trunk/src/site/xdoc/download_io.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/site/xdoc/download_io.xml?rev=1349397&r1=1349396&r2=1349397&view=diff
==
--- commons/proper/io/trunk/src/site/xdoc/download_io.xml (original)
+++ commons/proper/io/trunk/src/site/xdoc/download_io.xml Tue Jun 12 15:36:51 
2012
@@ -95,32 +95,32 @@ limitations under the License.
   
 
 
-
+
   
 
   
-  commons-io-2.3-bin.tar.gz
-  http://www.apache.org/dist/commons/io/binaries/commons-io-2.3-bin.tar.gz.md5";>md5
-  http://www.apache.org/dist/commons/io/binaries/commons-io-2.3-bin.tar.gz.asc";>pgp
+  commons-io-2.4-bin.tar.gz
+  http://www.apache.org/dist/commons/io/binaries/commons-io-2.4-bin.tar.gz.md5";>md5
+  http://www.apache.org/dist/commons/io/binaries/commons-io-2.4-bin.tar.gz.asc";>pgp
   
   
-  commons-io-2.3-bin.zip
-  http://www.apache.org/dist/commons/io/binaries/commons-io-2.3-bin.zip.md5";>md5
-  http://www.apache.org/dist/commons/io/binaries/commons-io-2.3-bin.zip.asc";>pgp
+  commons-io-2.4-bin.zip
+  http://www.apache.org/dist/commons/io/binaries/commons-io-2.4-bin.zip.md5";>md5
+  http://www.apache.org/dist/commons/io/binaries/commons-io-2.4-bin.zip.asc";>pgp
   
 
   
   
 
   
-  commons-io-2.3-src.tar.gz
-  http://www.apache.org/dist/commons/io/source/commons-io-2.3-src.tar.gz.md5";>md5
-  http://www.apache.org/dist/commons/io/source/commons-io-2.3-src.tar.gz.asc";>pgp
+  commons-io-2.4-src.tar.gz
+  http://www.apache.org/dist/commons/io/source/commons-io-2.4-src.tar.gz.md5";>md5
+  http://www.apache.org/dist/commons/io/source/commons-io-2.4-src.tar.gz.asc";>pgp
   
   
-  commons-io-2.3-src.zip
-  http://www.apache.org/dist/commons/io/source/commons-io-2.3-src.zip.md5";>md5
-  http://www.apache.org/dist/commons/io/source/commons-io-2.3-src.zip.asc";>pgp
+  commons-io-2.4-src.zip
+  http://www.apache.org/dist/commons/io/source/commons-io-2.4-src.zip.md5";>md5
+  http://www.apache.org/dist/commons/io/source/commons-io-2.4-src.zip.asc";>pgp
   
 
   




svn commit: r1349376 - /commons/proper/io/trunk/src/changes/changes.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 14:43:53 2012
New Revision: 1349376

URL: http://svn.apache.org/viewvc?rev=1349376&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/src/changes/changes.xml

Modified: commons/proper/io/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/changes.xml?rev=1349376&r1=1349375&r2=1349376&view=diff
==
--- commons/proper/io/trunk/src/changes/changes.xml (original)
+++ commons/proper/io/trunk/src/changes/changes.xml Tue Jun 12 14:43:53 2012
@@ -46,7 +46,7 @@ The  type attribute can be add,u
 
   
 
-
+
   
 Tailer locks file from deletion/rename on Windows.
   




svn commit: r1349372 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/inference/MannWhitneyUTest.java

2012-06-12 Thread mikl
Author: mikl
Date: Tue Jun 12 14:27:56 2012
New Revision: 1349372

URL: http://svn.apache.org/viewvc?rev=1349372&view=rev
Log:
MATH-790: Patch applied to fix the second overflow issue.

Modified:

commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/inference/MannWhitneyUTest.java

Modified: 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/inference/MannWhitneyUTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/inference/MannWhitneyUTest.java?rev=1349372&r1=1349371&r2=1349372&view=diff
==
--- 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/inference/MannWhitneyUTest.java
 (original)
+++ 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/stat/inference/MannWhitneyUTest.java
 Tue Jun 12 14:27:56 2012
@@ -170,7 +170,10 @@ public class MannWhitneyUTest {
  final int n2)
 throws ConvergenceException, MaxCountExceededException {
 
-final double n1n2prod = n1 * n2;
+/* long multiplication to avoid overflow (double not used due to 
efficiency 
+ * and to avoid precision loss)
+ */
+final long n1n2prod = (long) n1 * n2;
 
 // 
http://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U#Normal_approximation
 final double EU = n1n2prod / 2.0;




svn commit: r1349353 - /commons/proper/io/trunk/src/changes/changes.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 13:48:30 2012
New Revision: 1349353

URL: http://svn.apache.org/viewvc?rev=1349353&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/src/changes/changes.xml

Modified: commons/proper/io/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/changes.xml?rev=1349353&r1=1349352&r2=1349353&view=diff
==
--- commons/proper/io/trunk/src/changes/changes.xml (original)
+++ commons/proper/io/trunk/src/changes/changes.xml Tue Jun 12 13:48:30 2012
@@ -46,7 +46,7 @@ The  type attribute can be add,u
 
   
 
-
+
   
 Tailer locks file from deletion/rename on Windows.
   
@@ -57,16 +57,15 @@ The  type attribute can be add,u
 Tailer#readLines - incorrect CR handling.
   
   
-FileUtils.toURLs throws NPE for null parameter.
-Documented the behaviour.
+FileUtils.toURLs throws NPE for null parameter; document the behavior.
   
   
 Export OSGi packages at version 1.x in addition to 2.x.
   
-  
+  
 Add XmlStreamReader support for UTF-32.
   
-  
+  
 BOMInputStream wrongly detects UTF-32LE_BOM files as UTF-16LE_BOM 
files in method getBOM().
   
   
@@ -95,7 +94,7 @@ The  type attribute can be add,u
   
 
 
-
+
   
 Add and use class Charsets.
   
@@ -106,7 +105,7 @@ The  type attribute can be add,u
 Add Charset sister APIs to method that take a String charset name.
   
 
-
+
   
 Add IOUTils.toBufferedReader(Reader)
   
@@ -124,7 +123,7 @@ The  type attribute can be add,u
 New copyLarge() method in IOUtils that takes additional offset, length 
arguments
   
   
-FileUtils.moveDirectoryToDirectory removes source directory if 
destination is a subdirectory
+FileUtils.moveDirectoryToDirectory removes source directory if 
destination is a sub-directory
   
   
 ReaderInputStream#read(byte[] b, int off, int len) should check for 
valid parameters
@@ -182,7 +181,7 @@ The  type attribute can be add,u
 Added contentEqualsIgnoreEOL methods to both classes
   
 
-
+
   
 Use standard Maven directory layout
   
@@ -250,7 +249,7 @@ The  type attribute can be add,u
   
 
 
-
+
   
 Some tests, which are implicitly assuming a Unix-like file
 system, are now skipped on Windows.




svn commit: r1349352 - /commons/proper/io/trunk/src/changes/release-notes.vm

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 13:47:59 2012
New Revision: 1349352

URL: http://svn.apache.org/viewvc?rev=1349352&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/src/changes/release-notes.vm

Modified: commons/proper/io/trunk/src/changes/release-notes.vm
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/release-notes.vm?rev=1349352&r1=1349351&r2=1349352&view=diff
==
--- commons/proper/io/trunk/src/changes/release-notes.vm (original)
+++ commons/proper/io/trunk/src/changes/release-notes.vm Tue Jun 12 13:47:59 
2012
@@ -38,6 +38,7 @@ Apache Commons IO Version ${version}
 ## Hack to improve layout: replace all pairs of spaces with a single new-line
 $release.description.replaceAll("  ", "
 ")
+
 ##
 #if ($release.getActions().size() == 0)
 No changes defined in this version.
@@ -142,6 +143,11 @@ o#if($!issue != "") $issue: #else$indent
 ## End of main loop
 #end
 ##
+Compatibility with 2.3:
+Binary compatible: Yes.
+Source compatible: Yes.
+Semantic compatible: Yes.
+
 Compatibility with 2.2 and 1.4:
 Binary compatible: Yes.
 Source compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.




svn commit: r1349351 - /commons/proper/io/trunk/src/changes/release-notes.vm

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 13:44:04 2012
New Revision: 1349351

URL: http://svn.apache.org/viewvc?rev=1349351&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/src/changes/release-notes.vm

Modified: commons/proper/io/trunk/src/changes/release-notes.vm
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/release-notes.vm?rev=1349351&r1=1349350&r2=1349351&view=diff
==
--- commons/proper/io/trunk/src/changes/release-notes.vm (original)
+++ commons/proper/io/trunk/src/changes/release-notes.vm Tue Jun 12 13:44:04 
2012
@@ -147,6 +147,27 @@ Binary compatible: Yes.
 Source compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
 Semantic compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
 
+Commons IO 2.4 requires JDK 1.6 or later.
+Commons IO 2.3 requires JDK 1.6 or later.
+Commons IO 2.2 requires JDK 1.5 or later.
+Commons IO 1.4 requires JDK 1.3 or later.
+
+==
+Apache Commons IO Version 2.3
+==
+
+Changes in this version include:
+
+New features:
+o IO-322:  Add and use class Charsets. Thanks to ggregory. 
+o IO-321:  ByteOrderMark UTF_32LE is incorrect. Thanks to ggregory. 
+o IO-318:  Add Charset sister APIs to method that take a String charset name. 
Thanks to ggregory. 
+
+Compatibility with 2.2 and 1.4:
+Binary compatible: Yes.
+Source compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
+Semantic compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
+
 Commons IO 2.3 requires JDK 1.6 or later.
 Commons IO 2.2 requires JDK 1.5 or later.
 Commons IO 1.4 requires JDK 1.3 or later.




svn commit: r1349350 - /commons/proper/io/trunk/RELEASE-NOTES.txt

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 13:43:06 2012
New Revision: 1349350

URL: http://svn.apache.org/viewvc?rev=1349350&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/RELEASE-NOTES.txt

Modified: commons/proper/io/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/RELEASE-NOTES.txt?rev=1349350&r1=1349349&r2=1349350&view=diff
==
--- commons/proper/io/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/io/trunk/RELEASE-NOTES.txt Tue Jun 12 13:43:06 2012
@@ -13,7 +13,7 @@ The Commons IO library contains utility 
 file comparators, endian transformation classes, and much more.
 
 ==
-Apache Commons IO Version 2.3-SNAPSHOT
+Apache Commons IO Version 2.3
 ==
 
 Changes in this version include:




svn commit: r1349345 - /commons/proper/io/trunk/src/site/site.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 13:40:19 2012
New Revision: 1349345

URL: http://svn.apache.org/viewvc?rev=1349345&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/src/site/site.xml

Modified: commons/proper/io/trunk/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/site/site.xml?rev=1349345&r1=1349344&r2=1349345&view=diff
==
--- commons/proper/io/trunk/src/site/site.xml (original)
+++ commons/proper/io/trunk/src/site/site.xml Tue Jun 12 13:40:19 2012
@@ -28,7 +28,7 @@
 http://commons.apache.org/io/download_io.cgi"/>
 
 
-
+
 
 
 




svn commit: r1349343 - /commons/proper/io/trunk/src/site/xdoc/index.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 13:39:56 2012
New Revision: 1349343

URL: http://svn.apache.org/viewvc?rev=1349343&view=rev
Log:
Preparing release 2.4.

Modified:
commons/proper/io/trunk/src/site/xdoc/index.xml

Modified: commons/proper/io/trunk/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/site/xdoc/index.xml?rev=1349343&r1=1349342&r2=1349343&view=diff
==
--- commons/proper/io/trunk/src/site/xdoc/index.xml (original)
+++ commons/proper/io/trunk/src/site/xdoc/index.xml Tue Jun 12 13:39:56 2012
@@ -47,13 +47,13 @@ There are six main areas included:
 
 
 
-
+
 
-Commons IO 2.3 is the latest version and requires a minimum of JDK 1.6 -
+Commons IO 2.4 is the latest version and requires a minimum of JDK 1.6 -
 http://commons.apache.org/io/download_io.cgi";>Download now!
  
 
-View the Release Notes and
+View the Release Notes and
 JavaDoc API documents
  
 




svn commit: r1349342 - /commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 13:39:18 2012
New Revision: 1349342

URL: http://svn.apache.org/viewvc?rev=1349342&view=rev
Log:
Preparing release 2.4.

Added:
commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml   (with props)

Added: commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml?rev=1349342&view=auto
==
--- commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml (added)
+++ commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml Tue Jun 12 13:39:18 
2012
@@ -0,0 +1,81 @@
+
+
+
+ 
+  Upgrade from 2.3 to 2.4
+  Commons Documentation Team
+ 
+
+
+
+
+These are the release notes and advice for upgrading Commons-IO from
+version 2.3 to version 2.4
+
+Commons IO is a package of Java utility classes like java.io.  
+Classes in this package are considered to be so standard and of such high 
+reuse as to justify existence in java.io.
+
+The Commons IO library contains utility classes, stream implementations, file 
filters, 
+file comparators, endian transformation classes, and much more.
+
+==
+Apache Commons IO Version 2.4-SNAPSHOT
+==
+
+Changes in this version include:
+
+New features:
+o IO-269:  Tailer locks file from deletion/rename on Windows. Thanks to sebb. 
+o IO-333:  Export OSGi packages at version 1.x in addition to 2.x. Thanks to 
fmeschbe. 
+o IO-320:  Add XmlStreamReader support for UTF-32. Thanks to ggregory. 
+o IO-331:  BOMInputStream wrongly detects UTF-32LE_BOM files as UTF-16LE_BOM 
files in method getBOM(). Thanks to ggregory. 
+o IO-327:  Add byteCountToDisplaySize(BigInteger). Thanks to ggregory. 
+o IO-326:  Add new FileUtils.sizeOf[Directory] APIs to return BigInteger. 
Thanks to ggregory. 
+o IO-325:  Add IOUtils.toByteArray methods to work with URL and URI. Thanks to 
raviprak. 
+o IO-324:  Add missing Charset sister APIs to method that take a String 
charset name. Thanks to raviprak. 
+
+Fixed Bugs:
+o IO-279:  Tailer erroneously considers file as new. Thanks to Sergio Bossa, 
Chris Baron. 
+o IO-335:  Tailer#readLines - incorrect CR handling. 
+o IO-334:  FileUtils.toURLs throws NPE for null parameter; document the 
behavior. 
+o IO-332:  Improve tailer's reading performance. Thanks to liangly. 
+o IO-279:  Improve Tailer performance with buffered reads (see IO-332). 
+o IO-329:  FileUtils.writeLines uses unbuffered IO. Thanks to tivv. 
+o IO-319:  FileUtils.sizeOfDirectory follows symbolic links. Thanks to 
raviprak. 
+
+Compatibility with 2.3:
+Binary compatible: Yes.
+Source compatible: Yes.
+Semantic compatible: Yes.
+
+Compatibility with 2.2 and 1.4:
+Binary compatible: Yes.
+Source compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
+Semantic compatible: No, see the rare case in 
https://issues.apache.org/jira/browse/IO-318.
+
+Commons IO 2.4 requires JDK 1.6 or later.
+Commons IO 2.3 requires JDK 1.6 or later.
+Commons IO 2.2 requires JDK 1.5 or later.
+Commons IO 1.4 requires JDK 1.3 or later.
+
+
+
+
+
+

Propchange: commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml
--
svn:eol-style = native

Propchange: commons/proper/io/trunk/src/site/xdoc/upgradeto2_4.xml
--
svn:keywords = Id




svn commit: r1349311 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 12:53:56 2012
New Revision: 1349311

URL: http://svn.apache.org/viewvc?rev=1349311&view=rev
Log:
Fix @since.

Modified:
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1349311&r1=1349310&r2=1349311&view=diff
==
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
Tue Jun 12 12:53:56 2012
@@ -2038,7 +2038,7 @@ public class FileUtils {
  * @param append if {@code true}, then the data will be added to the
  * end of the file rather than overwriting
  * @throws IOException in case of an I/O error
- * @since IO 2.3
+ * @since 2.3
  */
 public static void write(File file, CharSequence data, Charset encoding, 
boolean append) throws IOException {
 String str = data == null ? null : data.toString();




svn commit: r1349306 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

2012-06-12 Thread ggregory
Author: ggregory
Date: Tue Jun 12 12:49:36 2012
New Revision: 1349306

URL: http://svn.apache.org/viewvc?rev=1349306&view=rev
Log:
Add missing Javadoc for org.apache.commons.io.FileUtils.checkDirectory(File)

Modified:
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1349306&r1=1349305&r2=1349306&view=diff
==
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java 
Tue Jun 12 12:49:36 2012
@@ -2521,11 +2521,16 @@ public class FileUtils {
 return size;
 }
 
+/**
+ * Checks that the given {@code File} exists and is a directory.
+ * 
+ * @param directory The {@code File} to check.
+ * @throws IllegalArgumentException if the given {@code File} does not 
exist or is not a directory.
+ */
 private static void checkDirectory(File directory) {
 if (!directory.exists()) {
 throw new IllegalArgumentException(directory + " does not exist");
 }
-
 if (!directory.isDirectory()) {
 throw new IllegalArgumentException(directory + " is not a 
directory");
 }