J2K: adapted for default visibility modifier 'public'

This commit is contained in:
Valentin Kipyatkov
2015-09-15 11:29:27 +03:00
parent 1ccbda6af4
commit c3ddd5d32b
477 changed files with 1359 additions and 1350 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
package test
open class JavaClass {
public var field: Int = 0
internal open class JavaClass {
var field: Int = 0
public var property: Int = 0
var property: Int = 0
protected set
}
+4 -4
View File
@@ -1,11 +1,11 @@
public class AAA {
public var x: Int = 42
class AAA {
var x: Int = 42
public fun foo() {
fun foo() {
x = x + 1
}
public fun bar(b: B) {
fun bar(b: B) {
println(b.YY)
}
}
+3 -3
View File
@@ -1,9 +1,9 @@
class B {
fun foo(a: AAA) {
internal class B {
internal fun foo(a: AAA) {
a.x = a.x + 1
YY += "a"
}
public var YY: String = ""
var YY: String = ""
private set
}
@@ -1,16 +1,16 @@
package test
open class ClassWithStatics {
public fun instanceMethod() {
internal open class ClassWithStatics {
fun instanceMethod() {
}
companion object {
public fun staticMethod(p: Int) {
fun staticMethod(p: Int) {
}
public val staticField: Int = 1
val staticField: Int = 1
public var value: Int = 0
var value: Int = 0
}
}
+3 -3
View File
@@ -1,10 +1,10 @@
package test
object PureUtils {
public fun foo1(p: Int) {
internal object PureUtils {
fun foo1(p: Int) {
}
public fun foo2(): Int {
fun foo2(): Int {
return 1
}
}
+4 -4
View File
@@ -1,12 +1,12 @@
package test
object Utils {
public fun foo1(p: Int) {
internal object Utils {
fun foo1(p: Int) {
}
public fun foo2(): Int {
fun foo2(): Int {
return 1
}
public val staticField: Int = 1
val staticField: Int = 1
}