Specify visibility in some files in jslibs
This commit is contained in:
@@ -5,8 +5,8 @@ import java.util.Iterator
|
|||||||
import js.library
|
import js.library
|
||||||
|
|
||||||
library
|
library
|
||||||
trait Iterable<T> {
|
public trait Iterable<T> {
|
||||||
fun iterator() : java.util.Iterator<T> = js.noImpl
|
public fun iterator() : java.util.Iterator<T> = js.noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
library
|
library
|
||||||
@@ -32,15 +32,15 @@ public class NumberFormatException(message: String = "") : Exception() {}
|
|||||||
|
|
||||||
library
|
library
|
||||||
public trait Runnable {
|
public trait Runnable {
|
||||||
open fun run() : Unit;
|
public open fun run() : Unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public trait Comparable<T> {
|
public trait Comparable<T> {
|
||||||
fun compareTo(that: T): Int
|
public fun compareTo(that: T): Int
|
||||||
}
|
}
|
||||||
|
|
||||||
public trait Appendable {
|
public trait Appendable {
|
||||||
open fun append(csq: CharSequence?): Appendable?
|
public open fun append(csq: CharSequence?): Appendable?
|
||||||
open fun append(csq: CharSequence?, start: Int, end: Int): Appendable?
|
public open fun append(csq: CharSequence?, start: Int, end: Int): Appendable?
|
||||||
open fun append(c: Char): Appendable?
|
public open fun append(c: Char): Appendable?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ public trait Iterator<T> {
|
|||||||
open public fun remove() : Unit = js.noImpl
|
open public fun remove() : Unit = js.noImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
val Collections = object {
|
public object Collections {
|
||||||
library("collectionsMax")
|
library("collectionsMax")
|
||||||
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = js.noImpl
|
public fun max<T>(col : Collection<T>, comp : Comparator<T>) : T = js.noImpl
|
||||||
|
|
||||||
// TODO should be immutable!
|
// TODO should be immutable!
|
||||||
private val emptyList = ArrayList<Any>()
|
public val emptyList: List<Any> = ArrayList<Any>()
|
||||||
private val emptyMap = HashMap<Any,Any>()
|
public val emptyMap: Map<Any, Any> = HashMap<Any,Any>()
|
||||||
|
|
||||||
public val <T> EMPTY_LIST: List<T>
|
public val <T> EMPTY_LIST: List<T>
|
||||||
get() = emptyList<T>()
|
get() = emptyList<T>()
|
||||||
@@ -142,7 +142,7 @@ public trait Map<K, V> {
|
|||||||
// open public fun equals(o : Any?) : Boolean
|
// open public fun equals(o : Any?) : Boolean
|
||||||
// open public fun hashCode() : Int
|
// open public fun hashCode() : Int
|
||||||
|
|
||||||
trait Entry<K, V> {
|
public trait Entry<K, V> {
|
||||||
open public fun getKey() : K
|
open public fun getKey() : K
|
||||||
open public fun getValue() : V
|
open public fun getValue() : V
|
||||||
open public fun setValue(value : V) : V
|
open public fun setValue(value : V) : V
|
||||||
@@ -191,6 +191,6 @@ public class NoSuchElementException() : Exception() {}
|
|||||||
|
|
||||||
library
|
library
|
||||||
public trait Enumeration<E> {
|
public trait Enumeration<E> {
|
||||||
open fun hasMoreElements() : Boolean
|
open public fun hasMoreElements() : Boolean
|
||||||
open fun nextElement() : E
|
open public fun nextElement() : E
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
package org.junit;
|
package org.junit;
|
||||||
|
|
||||||
native
|
native
|
||||||
annotation class Test(name : String = "") {}
|
public annotation class Test(name : String = "") {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user