commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1004842 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
Date Tue, 05 Oct 2010 22:32:30 GMT
Author: sebb
Date: Tue Oct  5 22:32:30 2010
New Revision: 1004842

URL: http://svn.apache.org/viewvc?rev=1004842&view=rev
Log:
Unnecessary casts

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java?rev=1004842&r1=1004841&r2=1004842&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/XmlStreamReaderTest.java
Tue Oct  5 22:32:30 2010
@@ -334,11 +334,11 @@ public class XmlStreamReaderTest extends
     protected InputStream getXmlStream(String bomType, String xmlType,
             String streamEnc, String prologEnc) throws IOException {
         ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
-        int[] bom = (int[]) BOMs.get(bomType);
+        int[] bom = BOMs.get(bomType);
         if (bom == null) {
             bom = new int[0];
         }
-        MessageFormat xml = (MessageFormat) XMLs.get(xmlType);
+        MessageFormat xml = XMLs.get(xmlType);
         for (int i = 0; i < bom.length; i++) {
             baos.write(bom[i]);
         }



Mime
View raw message