commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1297696 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
Date Tue, 06 Mar 2012 20:37:45 GMT
Author: ggregory
Date: Tue Mar  6 20:37:45 2012
New Revision: 1297696

URL: http://svn.apache.org/viewvc?rev=1297696&view=rev
Log:
Fix tab in source and reformat 2 methods for longer lines.

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=1297696&r1=1297695&r2=1297696&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 Mar  6
20:37:45 2012
@@ -461,20 +461,17 @@ public class FileUtils {
         return files;
     }
 
-    private static void validateListFilesParameters(File directory,
-    		IOFileFilter fileFilter) {
-    	if (!directory.isDirectory()) {
-    		throw new IllegalArgumentException(
-    				"Parameter 'directory' is not a directory");
-    	}
-    	if (fileFilter == null) {
-    		throw new NullPointerException("Parameter 'fileFilter' is null");
-    	}
+    private static void validateListFilesParameters(File directory, IOFileFilter fileFilter)
{
+        if (!directory.isDirectory()) {
+            throw new IllegalArgumentException("Parameter 'directory' is not a directory");
+        }
+        if (fileFilter == null) {
+            throw new NullPointerException("Parameter 'fileFilter' is null");
+        }
     }
 
     private static IOFileFilter setupEfectiveFileFilter(IOFileFilter fileFilter) {
-    	return FileFilterUtils.and(fileFilter,
-    			FileFilterUtils.notFileFilter(DirectoryFileFilter.INSTANCE));
+        return FileFilterUtils.and(fileFilter, FileFilterUtils.notFileFilter(DirectoryFileFilter.INSTANCE));
     }
 
 	private static IOFileFilter setupEffectiveDirFilter(IOFileFilter dirFilter) {



Mime
View raw message