Specify visibility in some files in jslibs

This commit is contained in:
Pavel V. Talanov
2012-07-03 21:36:04 +04:00
parent 7d29468e37
commit 592b0e9c37
3 changed files with 14 additions and 14 deletions
+7 -7
View File
@@ -5,8 +5,8 @@ import java.util.Iterator
import js.library
library
trait Iterable<T> {
fun iterator() : java.util.Iterator<T> = js.noImpl
public trait Iterable<T> {
public fun iterator() : java.util.Iterator<T> = js.noImpl
}
library
@@ -32,15 +32,15 @@ public class NumberFormatException(message: String = "") : Exception() {}
library
public trait Runnable {
open fun run() : Unit;
public open fun run() : Unit;
}
public trait Comparable<T> {
fun compareTo(that: T): Int
public fun compareTo(that: T): Int
}
public trait Appendable {
open fun append(csq: CharSequence?): Appendable?
open fun append(csq: CharSequence?, start: Int, end: Int): Appendable?
open fun append(c: Char): Appendable?
public open fun append(csq: CharSequence?): Appendable?
public open fun append(csq: CharSequence?, start: Int, end: Int): Appendable?
public open fun append(c: Char): Appendable?
}
+6 -6
View File
@@ -17,13 +17,13 @@ public trait Iterator<T> {
open public fun remove() : Unit = js.noImpl
}
val Collections = object {
public object Collections {
library("collectionsMax")
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = js.noImpl
// TODO should be immutable!
private val emptyList = ArrayList<Any>()
private val emptyMap = HashMap<Any,Any>()
public val emptyList: List<Any> = ArrayList<Any>()
public val emptyMap: Map<Any, Any> = HashMap<Any,Any>()
public val <T> EMPTY_LIST: List<T>
get() = emptyList<T>()
@@ -142,7 +142,7 @@ public trait Map<K, V> {
// open public fun equals(o : Any?) : Boolean
// open public fun hashCode() : Int
trait Entry<K, V> {
public trait Entry<K, V> {
open public fun getKey() : K
open public fun getValue() : V
open public fun setValue(value : V) : V
@@ -191,6 +191,6 @@ public class NoSuchElementException() : Exception() {}
library
public trait Enumeration<E> {
open fun hasMoreElements() : Boolean
open fun nextElement() : E
open public fun hasMoreElements() : Boolean
open public fun nextElement() : E
}
+1 -1
View File
@@ -1,5 +1,5 @@
package org.junit;
native
annotation class Test(name : String = "") {}
public annotation class Test(name : String = "") {}