commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/xdocs tutorial.xml
Date Mon, 23 Feb 2004 23:05:43 GMT
olegk       2004/02/23 15:05:43

  Modified:    httpclient/xdocs tutorial.xml
  Log:
  Fixes the mistake in the tutorial sample code
  
  Reported by Thorsten Scherler
  
  Revision  Changes    Path
  1.5       +2 -3      jakarta-commons/httpclient/xdocs/tutorial.xml
  
  Index: tutorial.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/xdocs/tutorial.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- tutorial.xml	15 Feb 2004 14:17:03 -0000	1.4
  +++ tutorial.xml	23 Feb 2004 23:05:43 -0000	1.5
  @@ -210,9 +210,8 @@
   
               // Execute the method.
               int statusCode = -1;
  -            int attempt = 0;
               // We will retry up to 3 times.
  -            while (statusCode == -1 && attempt < 3; attempt++) {
  +            for (int attempt = 0; statusCode == -1 && attempt < 3; attempt++)
{
                 try {
                   // execute the method.
                   statusCode = client.executeMethod(method);
  
  
  

---------------------------------------------------------------------
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