commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1071100 - in /commons/proper/net/trunk/src/main/java/examples/nntp: ExtendedNNTPOps.java MessageThreading.java NNTPUtils.java
Date Tue, 15 Feb 2011 23:01:22 GMT
Author: sebb
Date: Tue Feb 15 23:01:21 2011
New Revision: 1071100

URL: http://svn.apache.org/viewvc?rev=1071100&view=rev
Log:
NET-355 examples.nntp.NNTPUtils does not compile

Modified:
    commons/proper/net/trunk/src/main/java/examples/nntp/ExtendedNNTPOps.java
    commons/proper/net/trunk/src/main/java/examples/nntp/MessageThreading.java
    commons/proper/net/trunk/src/main/java/examples/nntp/NNTPUtils.java

Modified: commons/proper/net/trunk/src/main/java/examples/nntp/ExtendedNNTPOps.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/nntp/ExtendedNNTPOps.java?rev=1071100&r1=1071099&r2=1071100&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/nntp/ExtendedNNTPOps.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/nntp/ExtendedNNTPOps.java Tue Feb 15 23:01:21
2011
@@ -58,8 +58,8 @@ public class ExtendedNNTPOps {
             // XOVER
             NewsgroupInfo testGroup = new NewsgroupInfo();
             client.selectNewsgroup("alt.test", testGroup);
-            long lowArticleNumber = testGroup.getFirstArticle();
-            long  highArticleNumber = lowArticleNumber + 100;
+            int lowArticleNumber = testGroup.getFirstArticle();
+            int  highArticleNumber = lowArticleNumber + 100;
             List<Article> articles = NNTPUtils.getArticleInfo(client, lowArticleNumber,
highArticleNumber);
 
             for (Article article : articles) {

Modified: commons/proper/net/trunk/src/main/java/examples/nntp/MessageThreading.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/nntp/MessageThreading.java?rev=1071100&r1=1071099&r2=1071100&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/nntp/MessageThreading.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/nntp/MessageThreading.java Tue Feb 15
23:01:21 2011
@@ -56,8 +56,8 @@ public class MessageThreading {
         NewsgroupInfo group = new NewsgroupInfo();
         client.selectNewsgroup("alt.test", group);
         
-        long lowArticleNumber = group.getFirstArticle();
-        long highArticleNumber = lowArticleNumber + 5000;
+        int lowArticleNumber = group.getFirstArticle();
+        int highArticleNumber = lowArticleNumber + 5000;
         
         System.out.println("Retrieving articles between [" + lowArticleNumber + "] and ["
+ highArticleNumber + "]");
         List<Article> articles = NNTPUtils.getArticleInfo(client, lowArticleNumber,
highArticleNumber);

Modified: commons/proper/net/trunk/src/main/java/examples/nntp/NNTPUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/nntp/NNTPUtils.java?rev=1071100&r1=1071099&r2=1071100&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/nntp/NNTPUtils.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/nntp/NNTPUtils.java Tue Feb 15 23:01:21
2011
@@ -45,7 +45,7 @@ public class NNTPUtils {
      * @return Article[] An array of Article
      * @throws IOException
      */
-    public  static List<Article> getArticleInfo(NNTPClient client, long lowArticleNumber,
long highArticleNumber)
+    public  static List<Article> getArticleInfo(NNTPClient client, int lowArticleNumber,
int highArticleNumber)
     throws IOException {
         Reader reader = null;
         List<Article> articles = new ArrayList<Article>();



Mime
View raw message