You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2017/02/04 14:22:22 UTC

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

Author: sebb
Date: Sat Feb  4 14:22:22 2017
New Revision: 1781672

URL: http://svn.apache.org/viewvc?rev=1781672&view=rev
Log:
VALIDATOR-411 - decided to use parseInt instead of Long and forgot to change variable

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=1781672&r1=1781671&r2=1781672&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 Sat Feb  4 14:22:22 2017
@@ -415,7 +415,7 @@ public class UrlValidator implements Ser
             String port = authorityMatcher.group(PARSE_AUTHORITY_PORT);
             if (port != null && port.length() > 0) {
             	try {
-            		long iPort = Integer.parseInt(port);
+            		int iPort = Integer.parseInt(port);
             		if (iPort < 0 || iPort > 0xFFFF) {
             			return false;
             		}