J2K: no explicit type required for public declarations
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
internal open class JavaClass {
|
||||
var field: Int = 0
|
||||
var field = 0
|
||||
|
||||
var property: Int = 0
|
||||
var property = 0
|
||||
protected set
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class AAA {
|
||||
var x: Int = 42
|
||||
var x = 42
|
||||
|
||||
fun foo() {
|
||||
x = x + 1
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@ internal class B {
|
||||
YY += "a"
|
||||
}
|
||||
|
||||
var YY: String = ""
|
||||
var YY = ""
|
||||
private set
|
||||
}
|
||||
@@ -9,8 +9,8 @@ internal open class ClassWithStatics {
|
||||
fun staticMethod(p: Int) {
|
||||
}
|
||||
|
||||
val staticField: Int = 1
|
||||
val staticField = 1
|
||||
|
||||
var value: Int = 0
|
||||
var value = 0
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,5 +8,5 @@ internal object Utils {
|
||||
return 1
|
||||
}
|
||||
|
||||
val staticField: Int = 1
|
||||
val staticField = 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user