void () { PrintStream out = System.out; if (out != originalSystemOut) { System.setOut(originalSystemOut); throwStreamRedirected("System.out", originalSystemOut, out); } if (originalSystemOut.checkError()) { throwStreamClosed("System.out"); } }