From 967439fde6424e73f5b849d0cb1fc962e1007dcb Mon Sep 17 00:00:00 2001
From: brinn <brinn>
Date: Tue, 15 Jul 2008 07:02:15 +0000
Subject: [PATCH] change: mark argument as allowing null

SVN: 7227
---
 .../ch/systemsx/cisd/common/utilities/FileUtilities.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/FileUtilities.java b/common/source/java/ch/systemsx/cisd/common/utilities/FileUtilities.java
index aa0a32c5518..6abc120ac86 100644
--- a/common/source/java/ch/systemsx/cisd/common/utilities/FileUtilities.java
+++ b/common/source/java/ch/systemsx/cisd/common/utilities/FileUtilities.java
@@ -1018,19 +1018,20 @@ public final class FileUtilities
      * Lists all resources in a given directory which match the filter.
      * 
      * @param directory the directory to list
-     * @param filter only files matching this filter will show up in the result
+     * @param filterOrNull only files matching this filter will show up in the result, if it is not
+     *            <code>null</code>.
      * @param loggerOrNull logger, if <code>null</code> than no logging occurs
      * @return all files in <var>directory</var> that match the filter, or <code>null</code>, if
      *         <var>directory</var> does not exist or is not a directory.
      */
-    public static File[] tryListFiles(final File directory, final FileFilter filter,
+    public static File[] tryListFiles(final File directory, final FileFilter filterOrNull,
             final ISimpleLogger loggerOrNull)
     {
         File[] paths = null;
         RuntimeException ex = null;
         try
         {
-            paths = directory.listFiles(filter);
+            paths = directory.listFiles(filterOrNull);
         } catch (final RuntimeException e)
         {
             ex = e;
-- 
GitLab