You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rw...@apache.org on 2006/01/28 15:14:41 UTC

svn commit: r373149 - /jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/nntp/Article.java

Author: rwinston
Date: Sat Jan 28 06:14:29 2006
New Revision: 373149

URL: http://svn.apache.org/viewcvs?rev=373149&view=rev
Log:
Fixed ClassCastException

Modified:
    jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/nntp/Article.java

Modified: jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/nntp/Article.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/nntp/Article.java?rev=373149&r1=373148&r2=373149&view=diff
==============================================================================
--- jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/nntp/Article.java (original)
+++ jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/nntp/Article.java Sat Jan 28 06:14:29 2006
@@ -1,7 +1,7 @@
 /* ====================================================================
  * The Apache Software License, Version 1.1
  *
- * Copyright (c) 2001-2005 The Apache Software Foundation.  All rights
+ * Copyright (c) 2001-2006 The Apache Software Foundation.  All rights
  * reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -60,7 +60,7 @@
 /**
  * This is a class that contains the basic state needed for message retrieval and threading.
  * With thanks to Jamie  Zawinski <jw...@jwz.org>
- * @author rwinston <rw...@checkfree.com>
+ * @author rwinston <rw...@apache.org>
  *
  */
 public class Article implements Threadable {
@@ -119,7 +119,7 @@
 		while (st.hasMoreTokens()) {
 			list.add(st.nextToken());
 		}
-		return (String[]) list.toArray();
+		return (String[]) list.toArray(new String[list.size()]);
 	}
 	
 	/**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org