Commits

Anonymous committed 94a7e58

tiniest of tiny performance improvements

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@405e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/validator/validators/URLValidator.java

 package com.opensymphony.xwork.validator.validators;
 
 import com.opensymphony.util.TextUtils;
-
 import com.opensymphony.xwork.validator.ValidationException;
 
 
             return;
         }
 
-        if (!(value instanceof String) || !TextUtils.verifyUrl((String) value)) {
+        if (!(value.getClass().equals(String.class)) || !TextUtils.verifyUrl((String) value)) {
             addFieldError(fieldName, object);
         }
     }