mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-22 14:25:12 +00:00
Work on #403, removed checkstyle violations
This commit is contained in:
@@ -58,7 +58,8 @@ public class PromiseTest {
|
||||
@Override
|
||||
public Integer call() throws Exception {
|
||||
throw new RuntimeException("Barf!");
|
||||
}}, executor);
|
||||
}
|
||||
}, executor);
|
||||
|
||||
try {
|
||||
promise.get();
|
||||
@@ -85,7 +86,8 @@ public class PromiseTest {
|
||||
@Override
|
||||
public Integer call() throws Exception {
|
||||
throw new RuntimeException("Barf!");
|
||||
}}, executor);
|
||||
}
|
||||
}, executor);
|
||||
|
||||
try {
|
||||
promise.get(1000, TimeUnit.SECONDS);
|
||||
|
||||
Reference in New Issue
Block a user