commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130789 - /commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/Channel.java
Date Thu, 02 Jun 2011 20:26:08 GMT
Author: simonetripodi
Date: Thu Jun  2 20:26:07 2011
New Revision: 1130789

URL: http://svn.apache.org/viewvc?rev=1130789&view=rev
Log:
removed unneeded casts

Modified:
    commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/Channel.java

Modified: commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/Channel.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/Channel.java?rev=1130789&r1=1130788&r2=1130789&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/Channel.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/rss/src/main/java/org/apache/commons/digester3/rss/Channel.java
Thu Jun  2 20:26:07 2011
@@ -304,7 +304,7 @@ public class Channel implements Serializ
     public Item[] findItems() {
         synchronized (items) {
             Item items[] = new Item[this.items.size()];
-            return ((Item[]) this.items.toArray(items));
+            return this.items.toArray(items);
         }
     }
 
@@ -323,7 +323,7 @@ public class Channel implements Serializ
     public String[] findSkipDays() {
         synchronized (skipDays) {
             String skipDays[] = new String[this.skipDays.size()];
-            return ((String[]) this.skipDays.toArray(skipDays));
+            return this.skipDays.toArray(skipDays);
         }
     }
 
@@ -342,7 +342,7 @@ public class Channel implements Serializ
     public String[] findSkipHours() {
         synchronized (skipHours) {
             String skipHours[] = new String[this.skipHours.size()];
-            return ((String[]) this.skipHours.toArray(skipHours));
+            return this.skipHours.toArray(skipHours);
         }
     }
 
@@ -403,7 +403,7 @@ public class Channel implements Serializ
         try {
             render(stream, null);
         } catch (UnsupportedEncodingException e) {
-            ; // Can not happen
+            // Can not happen
         }
 
     }



Mime
View raw message