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
+2 -2
View File
@@ -1,7 +1,7 @@
open class Base {
internal open class Base {
private val myFirst: String? = null
}
class Child : Base() {
internal class Child : Base() {
private val mySecond: String? = null
}
+3 -3
View File
@@ -1,13 +1,13 @@
class A {
internal class A {
private var i: Int? = getByte().toInt()
fun foo() {
internal fun foo() {
i = 10
}
companion object {
fun getByte(): Byte {
internal fun getByte(): Byte {
return 0
}
}
+2 -2
View File
@@ -1,5 +1,5 @@
// ERROR: Unresolved reference: Foo
// ERROR: Property must be initialized or be abstract
class C {
var f: Foo
internal class C {
internal var f: Foo
}
+1 -1
View File
@@ -1,4 +1,4 @@
// ERROR: Unresolved reference: Foo
class C {
internal class C {
private val f: Foo? = null
}
+1 -1
View File
@@ -1,5 +1,5 @@
// ERROR: Unresolved reference: Foo
// ERROR: Property must be initialized or be abstract
class C {
internal class C {
protected var f: Foo
}
+2 -2
View File
@@ -1,5 +1,5 @@
// ERROR: Unresolved reference: Foo
// ERROR: Property must be initialized or be abstract
class C {
public var f: Foo
internal class C {
var f: Foo
}
+7 -7
View File
@@ -1,25 +1,25 @@
import java.util.*
class A {
internal class A {
private val field1 = ArrayList<String>()
val field2: List<String> = ArrayList()
public val field3: Int = 0
internal val field2: List<String> = ArrayList()
val field3: Int = 0
protected val field4: Int = 0
private var field5: List<String> = ArrayList()
var field6: List<String> = ArrayList()
internal var field6: List<String> = ArrayList()
private var field7 = 0
var field8 = 0
internal var field8 = 0
private var field9: String? = "a"
private var field10: String? = foo()
fun foo(): String {
internal fun foo(): String {
return "x"
}
fun bar() {
internal fun bar() {
field5 = ArrayList<String>()
field7++
field8++
+4 -4
View File
@@ -1,9 +1,9 @@
class A(private val field6: Int, private val field8: Int, a: A) {
internal class A internal constructor(private val field6: Int, private val field8: Int, a: A) {
private val field1 = 0
private val field2 = 0
private var field3 = 0
val field4 = 0
var field5 = 0
internal val field4 = 0
internal var field5 = 0
private val field7: Int
private val field9: Int
private var field10: Int = 0
@@ -18,7 +18,7 @@ class A(private val field6: Int, private val field8: Int, a: A) {
a.field11 = 10
}
fun foo() {
internal fun foo() {
field3 = field2
}
}
+2 -2
View File
@@ -1,4 +1,4 @@
// ERROR: Unresolved reference: Foo
class C {
val f = Foo(1, 2)
internal class C {
internal val f = Foo(1, 2)
}
+2 -2
View File
@@ -1,4 +1,4 @@
// ERROR: Unresolved reference: Foo
class C {
var f = Foo(1, 2)
internal class C {
internal var f = Foo(1, 2)
}
+2 -2
View File
@@ -1,5 +1,5 @@
// ERROR: Unresolved reference: Foo
// ERROR: Property must be initialized or be abstract
class C {
var f: Foo
internal class C {
internal var f: Foo
}
@@ -1,10 +1,10 @@
// ERROR: This annotation is not applicable to target 'member property'
class A {
internal class A {
Deprecated("")
Volatile var field1 = 0
Volatile internal var field1 = 0
Transient var field2 = 1
Transient internal var field2 = 1
// Should work even for bad modifiers
Strictfp var field3 = 2.0
Strictfp internal var field3 = 2.0
}