修改严重问题
This commit is contained in:
parent
3f28bbc589
commit
cf4255bf7f
|
@ -97,7 +97,7 @@ public class Logger {
|
|||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
PrintStream ps = new PrintStream(baos);
|
||||
|
||||
t.printStackTrace(ps);
|
||||
LOGGER.log("context", t);
|
||||
ps.close();
|
||||
return baos.toString();
|
||||
}
|
||||
|
|
|
@ -110,7 +110,6 @@ public class HiddenAccess {
|
|||
Logger.logError("Can't find robocode.core-1.x.jar module near to robocode.jar");
|
||||
Logger.logError("Class path: " + System.getProperty("robocode.class.path", null));
|
||||
}
|
||||
System.exit(-1);
|
||||
} catch (MalformedURLException e) {
|
||||
Logger.logError(e);
|
||||
} catch (MyException e) {
|
||||
|
|
|
@ -61,6 +61,7 @@ public abstract class Event implements Comparable<Event>, Serializable {
|
|||
* has a lower precedence, i.e. must be listed after the specified event.
|
||||
* 0 means that the precedence of the two events are equal.
|
||||
*/
|
||||
@Override
|
||||
public int compareTo(Event event) {
|
||||
// Compare the time difference which has precedence over priority.
|
||||
int timeDiff = (int) (time - event.time);
|
||||
|
|
Loading…
Reference in New Issue