Java to Kotlin converter: declare private field with no writes as val
This commit is contained in:
@@ -11,7 +11,7 @@ class A() {
|
||||
/* body is empty */
|
||||
}
|
||||
|
||||
private /*it's private*/ var field = 0
|
||||
private /*it's private*/ val field = 0
|
||||
|
||||
public /*it's public*/ fun foo(): Char {
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
class A() {
|
||||
private var isOpen = true // ideally should be atomic boolean
|
||||
private val isOpen = true // ideally should be atomic boolean
|
||||
}
|
||||
Reference in New Issue
Block a user