commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r327148 - /jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java
Date Fri, 21 Oct 2005 10:50:34 GMT
Author: niallp
Date: Fri Oct 21 03:50:20 2005
New Revision: 327148

URL: http://svn.apache.org/viewcvs?rev=327148&view=rev
Log:
Bug 37192 - correct UrlValidator JavaDoc - reported by Walter Gildersleeve.

Modified:
    jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java

Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java?rev=327148&r1=327147&r2=327148&view=diff
==============================================================================
--- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java
(original)
+++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java
Fri Oct 21 03:50:20 2005
@@ -47,8 +47,8 @@
  *   Construct a UrlValidator with valid schemes of "http", and "https".
  *
  *    String[] schemes = {"http","https"}.
- *    Urlvalidator urlValidator = new Urlvalidator(schemes);
- *    if (urlValidator.isValid("ftp")) {
+ *    UrlValidator urlValidator = new UrlValidator(schemes);
+ *    if (urlValidator.isValid("ftp://foo.bar.com/")) {
  *       System.out.println("url is valid");
  *    } else {
  *       System.out.println("url is invalid");
@@ -57,8 +57,8 @@
  *    prints "url is invalid"
  *   If instead the default constructor is used.
  *
- *    Urlvalidator urlValidator = new Urlvalidator();
- *    if (urlValidator.isValid("ftp")) {
+ *    UrlValidator urlValidator = new UrlValidator();
+ *    if (urlValidator.isValid("ftp://foo.bar.com/")) {
  *       System.out.println("url is valid");
  *    } else {
  *       System.out.println("url is invalid");



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message