Capitalize copies of JVM annotations for js stdlib

This commit is contained in:
Denis Zharkov
2015-09-15 16:48:52 +03:00
parent e401a98a2b
commit 53bccec50d
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -26,11 +26,11 @@ import kotlin.InlineOption.ONLY_LOCAL_RETURN
@native
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
public annotation class volatile
public annotation class Volatile
@native
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
@Retention(AnnotationRetention.SOURCE)
public annotation class synchronized
public annotation class Synchronized
public inline fun <R> synchronized(lock: Any, crossinline block: () -> R): R = block()
+1 -1
View File
@@ -17,7 +17,7 @@
package kotlin
private class ConstrainedOnceSequence<T>(sequence: Sequence<T>) : Sequence<T> {
@volatile private var sequenceRef: Sequence<T>? = sequence
@Volatile private var sequenceRef: Sequence<T>? = sequence
//private val lock = Any()
//TODO: Synchronize with the synchonized() method