Author: rdonkin
Date: Sun Dec  8 21:31:31 2013
New Revision: 1549301

URL: http://svn.apache.org/r1549301
Log:
Format Code.

Modified:
    
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/Walker.java

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/Walker.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/Walker.java?rev=1549301&r1=1549300&r2=1549301&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/Walker.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/walker/Walker.java
 Sun Dec  8 21:31:31 2013
@@ -30,49 +30,50 @@ import org.apache.rat.report.IReportable
  */
 public abstract class Walker implements IReportable {
 
-    protected final File file;
-    protected final String name;
+       protected final File file;
+       protected final String name;
 
-    protected final FilenameFilter filter;
+       protected final FilenameFilter filter;
 
-    protected static FilenameFilter regexFilter(final Pattern pattern) {
-        return new FilenameFilter() {
-            public boolean accept(File dir, String name) {
-                final boolean result;
-                if (pattern == null) {
-                    result = true;
-                } else {
-                    result = !pattern.matcher(name).matches();
-                }
-                return result;
-            }
-        };
-    }
-
-    protected boolean isRestricted(File file) {
-        String name = file.getName();
-        boolean result = name.startsWith(".");
-        return result;
-    }
- 
-    protected final boolean ignored(final File file) {
-        boolean result = false;
-        if (filter != null) {
-            final String name = file.getName();
-            final File dir = file.getParentFile();
-            result = !filter.accept(dir, name);
-        }
-        return result;
-    }
-
-    public Walker(File file, final FilenameFilter filter) {
-        this(file.getPath(), file, filter);
-    }
-
-    protected Walker(final String name, final File file, final FilenameFilter 
filter) {
-        this.name = name;
-        this.file = file;
-        this.filter = filter;
-    }
+       protected static FilenameFilter regexFilter(final Pattern pattern) {
+               return new FilenameFilter() {
+                       public boolean accept(File dir, String name) {
+                               final boolean result;
+                               if (pattern == null) {
+                                       result = true;
+                               } else {
+                                       result = 
!pattern.matcher(name).matches();
+                               }
+                               return result;
+                       }
+               };
+       }
+
+       protected boolean isRestricted(File file) {
+               String name = file.getName();
+               boolean result = name.startsWith(".");
+               return result;
+       }
+
+       protected final boolean ignored(final File file) {
+               boolean result = false;
+               if (filter != null) {
+                       final String name = file.getName();
+                       final File dir = file.getParentFile();
+                       result = !filter.accept(dir, name);
+               }
+               return result;
+       }
+
+       public Walker(File file, final FilenameFilter filter) {
+               this(file.getPath(), file, filter);
+       }
+
+       protected Walker(final String name, final File file,
+                       final FilenameFilter filter) {
+               this.name = name;
+               this.file = file;
+               this.filter = filter;
+       }
 
 }


Reply via email to