equal
deleted
inserted
replaced
348 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
348 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
349 * |
349 * |
350 * @see #run(String[], PrintStream) |
350 * @see #run(String[], PrintStream) |
351 */ |
351 */ |
352 public static void main(String args[]) { |
352 public static void main(String args[]) { |
353 Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
353 Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
354 // Last try. If there is some exception outside the code, test should end correctly |
354 // Last try. If there is some exception outside the code, test should end correctly |
355 @Override |
355 @Override |
356 public void uncaughtException(Thread t, Throwable e) { |
356 public void uncaughtException(Thread t, Throwable e) { |
357 try { |
357 try { |
358 pool = null; |
358 pool = null; |