390 |
|
} finally { |
391 |
|
joinPool(e); |
392 |
|
} |
393 |
– |
|
393 |
|
} |
394 |
|
|
395 |
|
void checkCCL() { |
538 |
|
*/ |
539 |
|
public void testCallable2() throws Exception { |
540 |
|
Callable c = Executors.callable(new NoOpRunnable(), one); |
541 |
< |
assertEquals(one, c.call()); |
541 |
> |
assertSame(one, c.call()); |
542 |
|
} |
543 |
|
|
544 |
|
/** |
547 |
|
public void testCallable3() throws Exception { |
548 |
|
Callable c = Executors.callable(new PrivilegedAction() { |
549 |
|
public Object run() { return one; }}); |
550 |
< |
assertEquals(one, c.call()); |
550 |
> |
assertSame(one, c.call()); |
551 |
|
} |
552 |
|
|
553 |
|
/** |
556 |
|
public void testCallable4() throws Exception { |
557 |
|
Callable c = Executors.callable(new PrivilegedExceptionAction() { |
558 |
|
public Object run() { return one; }}); |
559 |
< |
assertEquals(one, c.call()); |
559 |
> |
assertSame(one, c.call()); |
560 |
|
} |
561 |
|
|
562 |
|
|