You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2014/12/26 13:40:11 UTC

svn commit: r1647966 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java

Author: britter
Date: Fri Dec 26 12:40:11 2014
New Revision: 1647966

URL: http://svn.apache.org/r1647966
Log:
Remove unnecessary this qualifier

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java?rev=1647966&r1=1647965&r2=1647966&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java (original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java Fri Dec 26 12:40:11 2014
@@ -258,17 +258,16 @@ public class UrlValidator implements Ser
         this.options = options;
 
         if (isOn(ALLOW_ALL_SCHEMES)) {
-            this.allowedSchemes = Collections.EMPTY_SET;
+            allowedSchemes = Collections.EMPTY_SET;
         } else {
             if (schemes == null) {
                 schemes = DEFAULT_SCHEMES;
             }
-            this.allowedSchemes = new HashSet();
-            this.allowedSchemes.addAll(Arrays.asList(schemes));
+            allowedSchemes = new HashSet();
+            allowedSchemes.addAll(Arrays.asList(schemes));
         }
 
         this.authorityValidator = authorityValidator;
-
     }
 
     /**
@@ -342,7 +341,7 @@ public class UrlValidator implements Ser
 
         if (isOff(ALLOW_ALL_SCHEMES)) {
 
-            if (!this.allowedSchemes.contains(scheme)) {
+            if (!allowedSchemes.contains(scheme)) {
                 return false;
             }
         }
@@ -486,7 +485,7 @@ public class UrlValidator implements Ser
      * @return whether the specified flag value is on.
      */
     private boolean isOn(long flag) {
-        return (this.options & flag) > 0;
+        return (options & flag) > 0;
     }
 
     /**
@@ -498,6 +497,6 @@ public class UrlValidator implements Ser
      * @return whether the specified flag value is off.
      */
     private boolean isOff(long flag) {
-        return (this.options & flag) == 0;
+        return (options & flag) == 0;
     }
 }