Migrated from @HiddenDeclaration to @Deprecated(..., level = DeprecationLevel.HIDDEN)
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
@file:JvmName("ThreadsKt")
|
||||
package kotlin.concurrent
|
||||
|
||||
import java.util.concurrent.*
|
||||
import java.util.concurrent.Executor
|
||||
import java.util.concurrent.ExecutorService
|
||||
import java.util.concurrent.Future
|
||||
|
||||
/**
|
||||
* Returns the current thread.
|
||||
@@ -13,8 +15,7 @@ public val currentThread: Thread
|
||||
/**
|
||||
* Exposes the name of this thread as a property.
|
||||
*/
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("name"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("name"), level = DeprecationLevel.HIDDEN)
|
||||
public var Thread.name: String
|
||||
get() = getName()
|
||||
set(value) {
|
||||
@@ -42,8 +43,7 @@ public val Thread.alive: Boolean
|
||||
/**
|
||||
* Exposes the priority of this thread as a property.
|
||||
*/
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("priority"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("priority"), level = DeprecationLevel.HIDDEN)
|
||||
public var Thread.priority: Int
|
||||
get() = getPriority()
|
||||
set(value) {
|
||||
@@ -53,8 +53,7 @@ public var Thread.priority: Int
|
||||
/**
|
||||
* Exposes the context class loader of this thread as a property.
|
||||
*/
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("contextClassLoader"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("contextClassLoader"), level = DeprecationLevel.HIDDEN)
|
||||
public var Thread.contextClassLoader: ClassLoader?
|
||||
get() = getContextClassLoader()
|
||||
set(value) {
|
||||
|
||||
@@ -7,31 +7,26 @@ import org.w3c.dom.events.EventTarget
|
||||
import org.w3c.dom.events.MouseEvent
|
||||
|
||||
// JavaScript style properties for JVM : TODO could auto-generate these
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("bubbles"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("bubbles"), level = DeprecationLevel.HIDDEN)
|
||||
public val Event.bubbles: Boolean
|
||||
get() = getBubbles()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("cancelable"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("cancelable"), level = DeprecationLevel.HIDDEN)
|
||||
public val Event.cancelable: Boolean
|
||||
get() = getCancelable()
|
||||
|
||||
public val Event.getCurrentTarget: EventTarget?
|
||||
get() = getCurrentTarget()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("eventPhase"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("eventPhase"), level = DeprecationLevel.HIDDEN)
|
||||
public val Event.eventPhase: Short
|
||||
get() = getEventPhase()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("target"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("target"), level = DeprecationLevel.HIDDEN)
|
||||
public val Event.target: EventTarget?
|
||||
get() = getTarget()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("timeStamp"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("timeStamp"), level = DeprecationLevel.HIDDEN)
|
||||
public val Event.timeStamp: Long
|
||||
get() = getTimeStamp()
|
||||
|
||||
@@ -40,52 +35,42 @@ public val Event.eventType: String
|
||||
get() = getType()!!
|
||||
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("altKey"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("altKey"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.altKey: Boolean
|
||||
get() = getAltKey()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("button"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("button"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.button: Short
|
||||
get() = getButton()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("clientX"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("clientX"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.clientX: Int
|
||||
get() = getClientX()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("clientY"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("clientY"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.clientY: Int
|
||||
get() = getClientY()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("ctrlKey"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("ctrlKey"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.ctrlKey: Boolean
|
||||
get() = getCtrlKey()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("metaKey"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("metaKey"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.metaKey: Boolean
|
||||
get() = getMetaKey()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("relatedTarget"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("relatedTarget"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.relatedTarget: EventTarget?
|
||||
get() = getRelatedTarget()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("screenX"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("screenX"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.screenX: Int
|
||||
get() = getScreenX()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("screenY"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("screenY"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.screenY: Int
|
||||
get() = getScreenY()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("shiftKey"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("shiftKey"), level = DeprecationLevel.HIDDEN)
|
||||
public val MouseEvent.shiftKey: Boolean
|
||||
get() = getShiftKey()
|
||||
|
||||
@@ -31,13 +31,11 @@ public val Node.nodeName: String
|
||||
public val Node.nodeValue: String
|
||||
get() = getNodeValue() ?: ""
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("nodeType"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("nodeType"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.nodeType: Short
|
||||
get() = getNodeType()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("parentNode"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("parentNode"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.parentNode: Node?
|
||||
get() = getParentNode()
|
||||
|
||||
@@ -45,38 +43,31 @@ public val Node.parentNode: Node?
|
||||
public val Node.childNodes: NodeList
|
||||
get() = getChildNodes()!!
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("firstChild"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("firstChild"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.firstChild: Node?
|
||||
get() = getFirstChild()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("lastChild"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("lastChild"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.lastChild: Node?
|
||||
get() = getLastChild()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("nextSibling"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("nextSibling"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.nextSibling: Node?
|
||||
get() = getNextSibling()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("previousSibling"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("previousSibling"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.previousSibling: Node?
|
||||
get() = getPreviousSibling()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("attributes"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("attributes"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.attributes: NamedNodeMap?
|
||||
get() = getAttributes()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("ownerDocument"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("ownerDocument"), level = DeprecationLevel.HIDDEN)
|
||||
public val Node.ownerDocument: Document?
|
||||
get() = getOwnerDocument()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("documentElement"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("documentElement"), level = DeprecationLevel.HIDDEN)
|
||||
public val Document.documentElement: Element?
|
||||
get() = this.getDocumentElement()
|
||||
|
||||
@@ -103,33 +94,27 @@ public var Node.textContent: String
|
||||
setTextContent(value)
|
||||
}
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"), level = DeprecationLevel.HIDDEN)
|
||||
public val DOMStringList.length: Int
|
||||
get() = this.getLength()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"), level = DeprecationLevel.HIDDEN)
|
||||
public val NameList.length: Int
|
||||
get() = this.getLength()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"), level = DeprecationLevel.HIDDEN)
|
||||
public val DOMImplementationList.length: Int
|
||||
get() = this.getLength()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"), level = DeprecationLevel.HIDDEN)
|
||||
public val NodeList.length: Int
|
||||
get() = this.getLength()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"), level = DeprecationLevel.HIDDEN)
|
||||
public val CharacterData.length: Int
|
||||
get() = this.getLength()
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("length"), level = DeprecationLevel.HIDDEN)
|
||||
public val NamedNodeMap.length: Int
|
||||
get() = this.getLength()
|
||||
|
||||
|
||||
@@ -61,24 +61,21 @@ public val File.parent: File?
|
||||
/**
|
||||
* Returns the canonical path of this file.
|
||||
*/
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("canonicalPath"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("canonicalPath"), level = DeprecationLevel.HIDDEN)
|
||||
public val File.canonicalPath: String
|
||||
get() = getCanonicalPath()
|
||||
|
||||
/**
|
||||
* Returns the file name.
|
||||
*/
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("name"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("name"), level = DeprecationLevel.HIDDEN)
|
||||
public val File.name: String
|
||||
get() = getName()
|
||||
|
||||
/**
|
||||
* Returns the file path.
|
||||
*/
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("path"))
|
||||
@Deprecated("Is replaced with automatic synthetic extension", ReplaceWith("path"), level = DeprecationLevel.HIDDEN)
|
||||
public val File.path: String
|
||||
get() = getPath()
|
||||
|
||||
|
||||
@@ -19,8 +19,7 @@ package kotlin
|
||||
|
||||
import java.util.Comparator
|
||||
|
||||
@HiddenDeclaration
|
||||
@Deprecated("Use compareValuesBy", ReplaceWith("compareValuesBy(a, b, *selectors)"))
|
||||
@Deprecated("Use compareValuesBy", ReplaceWith("compareValuesBy(a, b, *selectors)"), level = DeprecationLevel.HIDDEN)
|
||||
public fun <T> compareValuesByNullable(a: T, b: T, vararg selectors: (T) -> Comparable<*>?): Int = compareValuesBy(a, b, *selectors)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user