J2K: adapted for default visibility modifier 'public'
This commit is contained in:
+6
-6
@@ -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<*>) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user