Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop inline-only extensions and hide non-inline-only ones that are av…
…ailable now as mapped methods of mapped builtins. #KT-10887 Fixed
- Loading branch information
Showing
3 changed files
with
12 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
@file:kotlin.jvm.JvmMultifileClass | ||
@file:kotlin.jvm.JvmName("ExceptionsKt") | ||
@file:kotlin.jvm.JvmVersion | ||
@file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") | ||
@file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN", "DeprecatedCallableAddReplaceWith") | ||
package kotlin | ||
|
||
import java.io.PrintStream | ||
import java.io.PrintWriter | ||
|
||
/** | ||
* Prints the stack trace of this throwable to the standard output. | ||
*/ | ||
@kotlin.internal.InlineOnly | ||
public inline fun Throwable.printStackTrace(): Unit = (this as java.lang.Throwable).printStackTrace() | ||
|
||
/** | ||
* Prints the stack trace of this throwable to the specified [writer]. | ||
*/ | ||
@kotlin.internal.InlineOnly | ||
public inline fun Throwable.printStackTrace(writer: PrintWriter): Unit = (this as java.lang.Throwable).printStackTrace(writer) | ||
|
||
/** | ||
* Prints the stack trace of this throwable to the specified [stream]. | ||
*/ | ||
@kotlin.internal.InlineOnly | ||
public inline fun Throwable.printStackTrace(stream: PrintStream): Unit = (this as java.lang.Throwable).printStackTrace(stream) | ||
|
||
/** | ||
* Returns an array of stack trace elements representing the stack trace | ||
* pertaining to this throwable. | ||
*/ | ||
@Deprecated("Provided for binary compatibility", level = DeprecationLevel.HIDDEN) | ||
public val Throwable.stackTrace: Array<StackTraceElement> | ||
get() = (this as java.lang.Throwable).stackTrace!! | ||
get() = stackTrace!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters