incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r1052510 - /incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/net/RegexURLFilter.java
Date Fri, 24 Dec 2010 14:17:13 GMT
Author: otis
Date: Fri Dec 24 14:17:12 2010
New Revision: 1052510

URL: http://svn.apache.org/viewvc?rev=1052510&view=rev
Log:
- Detabbed

Modified:
    incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/net/RegexURLFilter.java

Modified: incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/net/RegexURLFilter.java
URL: http://svn.apache.org/viewvc/incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/net/RegexURLFilter.java?rev=1052510&r1=1052509&r2=1052510&view=diff
==============================================================================
--- incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/net/RegexURLFilter.java
(original)
+++ incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/net/RegexURLFilter.java
Fri Dec 24 14:17:12 2010
@@ -40,19 +40,19 @@ public class RegexURLFilter extends Logg
   private final List<RegexRule> rules;
   
   public RegexURLFilter(){
-	  rules = new ArrayList< RegexRule >();
+    rules = new ArrayList< RegexRule >();
   }
   
   /**
    * Adds a new regex rule to this filter <br>
    */
   public void addRule(final boolean sign, final String regex) {
-	  if( regex == null ){
-		  throw new IllegalArgumentException();
-	  }
-	  
-	  final RegexRule rule = createRule(sign, regex);
-	  rules.add(rule);
+    if( regex == null ){
+      throw new IllegalArgumentException();
+    }
+
+    RegexRule rule = createRule(sign, regex);
+    rules.add(rule);
   }
 
   /*
@@ -77,8 +77,7 @@ public class RegexURLFilter extends Logg
   public void setFile(String file) throws IOException {
     URL url = null;
     if (file.startsWith("classpath:/")) {
-      url = this.getClass().getResource(
-          file.substring("classpath:/".length() - 1));
+      url = this.getClass().getResource(file.substring("classpath:/".length() - 1));
     } else {
       url = (file.contains(":/") ? new URL(file) : new URL("file://" + file));
     }



Mime
View raw message