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:09:05 GMT
olegk       2004/02/23 15:09:05

  Modified:    httpclient/xdocs Tag: HTTPCLIENT_2_0_BRANCH tutorial.xml
  Log:
  Fixes the mistake in the tutorial sample code
  
  Reported by Thorsten Scherler
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.3   +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.2.2.2
  retrieving revision 1.2.2.3
  diff -u -r1.2.2.2 -r1.2.2.3
  --- tutorial.xml	15 Feb 2004 14:16:28 -0000	1.2.2.2
  +++ tutorial.xml	23 Feb 2004 23:09:05 -0000	1.2.2.3
  @@ -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