Skip to content

Commit 8ae6d54

Browse files
committed
Remove redundancy in Kotlin example
Functions have default Unit return type in Kotlin.
1 parent c64d295 commit 8ae6d54

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/kotlin/src/main/kotlin/org/androidannotations/gradle/activity/HelloAndroidActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ open public class HelloAndroidActivity : Activity() {
2121
protected lateinit var helloTextView: TextView
2222

2323
@AfterViews
24-
protected fun afterViews(): Unit {
24+
protected fun afterViews() {
2525
computeDateBackground()
2626
}
2727

2828
@Background
29-
protected open fun computeDateBackground(): Unit {
29+
protected open fun computeDateBackground() {
3030
val now = Date()
3131
val helloMessage = String.format(hello, now.toString())
3232

3333
updateHelloTextView(helloMessage)
3434
}
3535

3636
@UiThread
37-
protected open fun updateHelloTextView(helloMessage: String): Unit {
37+
protected open fun updateHelloTextView(helloMessage: String) {
3838
helloTextView.text = helloMessage
3939
}
4040
}

0 commit comments

Comments
 (0)