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