commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r636446 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Article.java
Date Wed, 12 Mar 2008 18:45:57 GMT
Author: sebb
Date: Wed Mar 12 11:45:54 2008
New Revision: 636446

URL: http://svn.apache.org/viewvc?rev=636446&view=rev
Log:
Fix up missing ArrayList types.
Remove unnecessary casts.

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

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Article.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Article.java?rev=636446&r1=636445&r2=636446&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Article.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/nntp/Article.java
Wed Mar 12 11:45:54 2008
@@ -75,14 +75,14 @@
 	public String[] getReferences() {
 		if (references == null)
 			return new String[0];
-		ArrayList list = new ArrayList();
+		ArrayList<String> list = new ArrayList<String>();
 		int terminator = references.toString().indexOf(':');
 		StringTokenizer st =
 			new StringTokenizer(references.substring(terminator), "\t");
 		while (st.hasMoreTokens()) {
 			list.add(st.nextToken());
 		}
-		return (String[]) list.toArray(new String[list.size()]);
+		return list.toArray(new String[list.size()]);
 	}
 	
 	/**
@@ -248,6 +248,6 @@
 
 	
 	public Threadable makeDummy() {
-		return (Threadable)new Article();
+		return new Article();
 	}
 }



Mime
View raw message