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
+6 -6
View File
@@ -1,22 +1,22 @@
import java.util.ArrayList
class C<T> {
fun foo1(src: Collection<T>) {
internal class C<T> {
internal fun foo1(src: Collection<T>) {
val t = src.iterator().next()
}
fun foo2(src: ArrayList<out T>) {
internal fun foo2(src: ArrayList<out T>) {
val t = src.iterator().next()
}
fun foo3(dst: MutableCollection<in T>, t: T) {
internal fun foo3(dst: MutableCollection<in T>, t: T) {
dst.add(t)
}
fun foo4(comparable: Comparable<T>, t: T): Int {
internal fun foo4(comparable: Comparable<T>, t: T): Int {
return comparable.compareTo(t)
}
fun foo5(w: Collection<*>) {
internal fun foo5(w: Collection<*>) {
}
}