Something went wrong. Try again.
Completely reimplimented in zig (eventually)
Something went wrong. Try again.
Java
at main
12345678910111213141516171819202122232425package com.microchip.mplab.ipecmd.errorlog;
import java.io.InvalidObjectException;import java.io.ObjectStreamException;import java.util.logging.Level;
public class StdOutErrLevel extends Level { public static Level STDOUT = new StdOutErrLevel("STDOUT", Level.INFO.intValue() + 53); public static Level STDERR = new StdOutErrLevel("STDERR", Level.INFO.intValue() + 54);
private StdOutErrLevel(String name, int value) { super(name, value); }
protected Object readResolve() throws ObjectStreamException { if (this.intValue() == STDOUT.intValue()) { return STDOUT; } else if (this.intValue() == STDERR.intValue()) { return STDERR; } else { throw new InvalidObjectException("Unknown instance :" + this); } }}