Use this method to revert System.err to the original output stream.
()
| 126 | * to the original output stream. |
| 127 | */ |
| 128 | public static void revertSystemErr() { |
| 129 | if (originalSystemErr != null && temporarySystemErr != null) { |
| 130 | temporarySystemErr.flush(); |
| 131 | temporarySystemErr.close(); |
| 132 | System.setErr(originalSystemErr); |
| 133 | originalSystemErr = null; |
| 134 | temporarySystemErr = null; |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | // ---------------------------------------------------------------- |
| 139 |
no test coverage detected