commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1441674 - in /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator: EmailValidator.java UrlValidator.java
Date Sat, 02 Feb 2013 01:02:25 GMT
Author: sebb
Date: Sat Feb  2 01:02:24 2013
New Revision: 1441674

URL: http://svn.apache.org/viewvc?rev=1441674&view=rev
Log:
Unused private constants

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

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java?rev=1441674&r1=1441673&r2=1441674&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/EmailValidator.java
Sat Feb  2 01:02:24 2013
@@ -49,8 +49,8 @@ public class EmailValidator {
     private static final String ATOM = VALID_CHARS + '+';
     private static final String WORD = "((" + VALID_CHARS + "|')+|" + QUOTED_USER + ")";
 
-    private static final Pattern LEGAL_ASCII_PATTERN = Pattern.compile("^\\p{ASCII}+$");
-    private static final Pattern EMAIL_PATTERN = Pattern.compile("^(.+)@(.+)$");
+// NOT USED   private static final Pattern LEGAL_ASCII_PATTERN = Pattern.compile("^\\p{ASCII}+$");
+// NOT USED   private static final Pattern EMAIL_PATTERN = Pattern.compile("^(.+)@(.+)$");
     private static final Pattern IP_DOMAIN_PATTERN = Pattern.compile("^\\[(.*)\\]$");
     private static final Pattern TLD_PATTERN = Pattern.compile("^([a-zA-Z]+)$");
             

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/UrlValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/UrlValidator.java?rev=1441674&r1=1441673&r2=1441674&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/UrlValidator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/UrlValidator.java
Sat Feb  2 01:02:24 2013
@@ -96,7 +96,7 @@ public class UrlValidator implements Ser
 
     private static final String ALPHA_CHARS = "a-zA-Z";
 
-    private static final String ALPHA_NUMERIC_CHARS = ALPHA_CHARS + "\\d";
+// NOT USED   private static final String ALPHA_NUMERIC_CHARS = ALPHA_CHARS + "\\d";
 
     private static final String SPECIAL_CHARS = ";/@&=,.?:+$";
 



Mime
View raw message