remove some unnecessary !! from stdlib

This commit is contained in:
Alex Tkachman
2012-09-26 19:19:44 +02:00
parent e2d514907a
commit 804e3769ff
11 changed files with 18 additions and 15 deletions
@@ -11,7 +11,7 @@ import java.util.concurrent.TimeUnit.*
class ThreadTest {
test fun scheduledTask() {
val pool = Executors.newFixedThreadPool(1)!!
val pool = Executors.newFixedThreadPool(1)
val countDown = CountDownLatch(1)
pool {
countDown.countDown()
@@ -21,7 +21,7 @@ class ThreadTest {
test fun callableInvoke() {
val pool = Executors.newFixedThreadPool(1)!!
val pool = Executors.newFixedThreadPool(1)
val future = pool<String> {
"Hello"
}