commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r373149 - /jakarta/commons/proper/net/trunk/src/java/org/apache/commons/net/nntp/Article.java
Date Sat, 28 Jan 2006 14:14:41 GMT
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 <jwz@jwz.org>
- * @author rwinston <rwinston@checkfree.com>
+ * @author rwinston <rwinston@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


Mime
View raw message