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