promise: Fix javac error
ECJ understood this by javac complained.
@@ -933,8 +933,8 @@ public class PromiseTest extends TestCase {
});
final CountDownLatch latch = new CountDownLatch(1);
final Promise<List<Number>> latched = factory
- .all(Arrays.asList(p1, p2))
- .onResolve(new Runnable() {
+ .all(Arrays.asList(p1, p2));
+ latched.onResolve(new Runnable() {
@Override
public void run() {
latch.countDown();
