MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / revertSystemErr

Method revertSystemErr

ij/src/main/java/ij/io/LogStream.java:128–136  ·  view source on GitHub ↗

Use this method to revert System.err to the original output stream.

()

Source from the content-addressed store, hash-verified

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

Callers 1

revertSystemMethod · 0.95

Calls 3

setErrMethod · 0.80
flushMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected