dfs 2004/04/11 17:46:26
Modified:net/src/java/org/apache/commons/net/nntp NNTPClient.java
Log:
Changed a 'new Integer(int).toString()' call to
'Integer.toString(int)', using a static method instead of creating a
new object..
Revision ChangesPath
1.11 +3 -2
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.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- NNTPClient.java 10 Apr 2004 21:11:48 - 1.10
+++ NNTPClient.java 12 Apr 2004 00:46:26 - 1.11
@@ -1193,7 +1193,7 @@
*/
public Reader retrieveArticleInfo(int articleNumber) throws IOException
{
-return __retrieveArticleInfo(new Integer(articleNumber).toString());
+return __retrieveArticleInfo(Integer.toString(articleNumber));
}
/**
@@ -1243,7 +1243,8 @@
* @return a DotTerminatedReader if successful, null otherwise
* @throws IOException
*/
-public Reader retrieveHeader(String header, int articleNumber) throws
IOException
+public Reader retrieveHeader(String header, int articleNumber)
+throws IOException
{
return __retrieveHeader(header, Integer.toString(articleNumber));
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]