equal
deleted
inserted
replaced
331 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
331 * (The stream <code>out</code> is assigned to <code>System.out</code> here.) |
332 * |
332 * |
333 * @see #run(String[], PrintStream) |
333 * @see #run(String[], PrintStream) |
334 */ |
334 */ |
335 public static void main(String args[]) { |
335 public static void main(String args[]) { |
336 Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
336 Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { |
337 // Last try. If there is some exception outside the code, test should end correctly |
337 // Last try. If there is some exception outside the code, test should end correctly |
338 @Override |
338 @Override |
339 public void uncaughtException(Thread t, Throwable e) { |
339 public void uncaughtException(Thread t, Throwable e) { |
340 try { |
340 try { |
341 pool = null; |
341 pool = null; |