commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r931753 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Threader.java
Date Thu, 08 Apr 2010 02:07:34 GMT
Author: sebb
Date: Thu Apr  8 02:07:34 2010
New Revision: 931753

URL: http://svn.apache.org/viewvc?rev=931753&view=rev
Log:
Fix incompatible API change - reintroduce original API and deprecate it

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Threader.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Threader.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Threader.java?rev=931753&r1=931752&r2=931753&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Threader.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Threader.java
Thu Apr  8 02:07:34 2010
@@ -27,6 +27,7 @@ package org.apache.commons.net.nntp;
  *
  */
 
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
@@ -39,7 +40,19 @@ public class Threader {
     /**
      * The main threader entry point - The client passes in an array of Threadable objects,
and
      * the Threader constructs a connected 'graph' of messages
-     * @param messages
+     * @param messages array of messages to thread
+     * @return null if messages == null or root.child == null
+     * @deprecated prefer {@link #thread(List)}
+     */
+    @Deprecated
+    public Threadable thread(Threadable[] messages) {
+        return thread(Arrays.asList(messages));
+    }
+
+    /**
+     * The main threader entry point - The client passes in a list of Threadable objects,
and
+     * the Threader constructs a connected 'graph' of messages
+     * @param messages list of messages to thread
      * @return null if messages == null or root.child == null
      */
     public Threadable thread(List<? extends Threadable> messages) {



Mime
View raw message