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