Dominik,
Thank you for fixing my new PrintStreams so that the forbidden-api checks would 
pass...head in hands.  I noticed that imports were shortened to wildcards.  
Should I flip back to listing all?
Thank you, again!

      Best,

                  Tim

-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.PrintStream;
+import java.io.*;
 import org.junit.AfterClass;
import org.junit.BeforeClass;
@@ -39,14 +33,14 @@
     private static PrintStream SYSTEM_OUT;
     @BeforeClass
-    public static void setUp() {
+    public static void setUp() throws UnsupportedEncodingException {
         SYSTEM_OUT = System.out;
         System.setOut(new PrintStream(new OutputStream() {
             @Override
             public void write(int b) throws IOException {
             }
-        }));
+        }, false, "UTF-8"));

Reply via email to