remove some unnecessary !! from stdlib
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user