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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]