equal
deleted
inserted
replaced
259 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
259 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
260 * |
260 * |
261 * @see #run(String[], PrintStream) |
261 * @see #run(String[], PrintStream) |
262 */ |
262 */ |
263 public static void main(String args[]) { |
263 public static void main(String args[]) { |
264 Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
264 Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
265 // Last try. If there is some exceptions outside the code, test should end correctly |
265 // Last try. If there is some exceptions outside the code, test should end correctly |
266 @Override |
266 @Override |
267 public void uncaughtException(Thread t, Throwable e) { |
267 public void uncaughtException(Thread t, Throwable e) { |
268 try { |
268 try { |
269 pool = null; |
269 pool = null; |