projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Use Runnable instead of a Kotlin arrow type
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
freenet
/
wot
/
WebOfTrustPingerTest.kt
diff --git
a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt
b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt
index
894b9ef
..
9743449
100644
(file)
--- a/
src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt
+++ b/
src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustPingerTest.kt
@@
-33,9
+33,9
@@
class WebOfTrustPingerTest {
private val eventBus = EventBus()
private val webOfTrustReachable = AtomicBoolean()
private val eventBus = EventBus()
private val webOfTrustReachable = AtomicBoolean()
- private val webOfTrustReacher
: () -> Unit =
{ webOfTrustReachable.get().onFalse { throw PluginException() } }
+ private val webOfTrustReacher
= Runnable
{ webOfTrustReachable.get().onFalse { throw PluginException() } }
private val rescheduled = AtomicBoolean()
private val rescheduled = AtomicBoolean()
- private val reschedule
: () -> Unit =
{ rescheduled.set(true) }
+ private val reschedule
= Runnable
{ rescheduled.set(true) }
private val pinger = WebOfTrustPinger(eventBus, webOfTrustReacher, reschedule)
@Test
private val pinger = WebOfTrustPinger(eventBus, webOfTrustReacher, reschedule)
@Test