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