commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject cvs commit: jakarta-commons/net/src/java/org/apache/commons/net/nntp NNTPClient.java
Date Fri, 26 Nov 2004 09:41:32 GMT
rwinston    2004/11/26 01:41:32

  Modified:    net/src/java/org/apache/commons/net/nntp NNTPClient.java
  Log:
  Handle the condition where the low and high water marks are 0, as per bug 32152
  
  Revision  Changes    Path
  1.15      +5 -1      jakarta-commons/net/src/java/org/apache/commons/net/nntp/NNTPClient.java
  
  Index: NNTPClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/nntp/NNTPClient.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- NNTPClient.java	29 Jun 2004 04:54:31 -0000	1.14
  +++ NNTPClient.java	26 Nov 2004 09:41:32 -0000	1.15
  @@ -193,7 +193,11 @@
               firstNum = Integer.parseInt(first);
               result._setFirstArticle(firstNum);
               result._setLastArticle(lastNum);
  -            result._setArticleCount(lastNum - firstNum + 1);
  +
  +	    if((firstNum == 0) && (lastNum == 0))
  +		    result._setArticleCount(0);
  +	    else
  +		    result._setArticleCount(lastNum - firstNum + 1);
           }
           catch (NumberFormatException e)
           {
  
  
  

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