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