commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1470209 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/FileFilterTestCase.java
Date Sat, 20 Apr 2013 17:59:45 GMT
Author: sebb
Date: Sat Apr 20 17:59:45 2013
New Revision: 1470209

URL: http://svn.apache.org/r1470209
Log:
Fix deprecation warnings

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/FileFilterTestCase.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/FileFilterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/FileFilterTestCase.java?rev=1470209&r1=1470208&r2=1470209&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/FileFilterTestCase.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/filefilter/FileFilterTestCase.java
Sat Apr 20 17:59:45 2013
@@ -28,6 +28,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
+import org.apache.commons.io.Charsets;
 import org.apache.commons.io.FileUtils;
 import org.apache.commons.io.IOCase;
 import org.apache.commons.io.IOUtils;
@@ -962,7 +963,7 @@ public class FileFilterTestCase extends 
         generateTestData(classFileAStream, 32);
         classFileAStream.close();
         
-        FileUtils.write(xmlFileB, xmlFileContent);
+        FileUtils.write(xmlFileB, xmlFileContent, Charsets.UTF_8);
         FileUtils.touch(emptyFile);
         
         IOFileFilter filter = new MagicNumberFileFilter(classFileMagicNumber);
@@ -1029,7 +1030,7 @@ public class FileFilterTestCase extends 
         generateTestData(classFileAStream, 32);
         classFileAStream.close();
         
-        FileUtils.write(xmlFileB, xmlFileContent);
+        FileUtils.write(xmlFileB, xmlFileContent, Charsets.UTF_8);
         
         IOFileFilter filter = new MagicNumberFileFilter(xmlMagicNumber);
         
@@ -1055,7 +1056,7 @@ public class FileFilterTestCase extends 
         
         final OutputStream tarFileAStream = FileUtils.openOutputStream(tarFileA);
         generateTestData(tarFileAStream, tarMagicNumberOffset);
-        IOUtils.write(tarMagicNumber, tarFileAStream);
+        IOUtils.write(tarMagicNumber, tarFileAStream, Charsets.UTF_8);
         tarFileAStream.close();
 
         createFile(randomFileB, 2 * tarMagicNumberOffset);



Mime
View raw message