Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,10 @@ fun fixTitle(str: String): String {
}
}

// Deprecate after next stable
/* @Deprecated(
@Deprecated(
message = "Use newJsContext or evalJs instead.",
level = DeprecationLevel.WARNING,
) */
)
suspend fun getRhinoContext(): org.mozilla.javascript.Context {
return Coroutines.mainWork {
val rhino = org.mozilla.javascript.Context.enter()
Expand Down Expand Up @@ -2560,11 +2559,10 @@ fun Episode.addDate(date: Instant?) {
this.date = date?.toEpochMilliseconds()
}

// Deprecate after next stable
/* @Deprecated(
@Deprecated(
message = "Use addDate with LocalDate, Instant, or String instead.",
level = DeprecationLevel.WARNING,
) */
)
fun Episode.addDate(date: java.util.Date?) {
this.date = date?.time
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ object AesHelper {
}
}

// Deprecate after next stable
/* @Deprecated(
@Deprecated(
message = "Set padding = false for no padding",
level = DeprecationLevel.WARNING,
) */
)
fun cryptoAESHandler(
data: String,
pass: ByteArray,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ object Coroutines {
return AtomicMutableList(items.toMutableList())
}

// Deprecate after next stable
/*@Deprecated(
@Deprecated(
message = "Use atomicListOf() instead.",
replaceWith = ReplaceWith("atomicListOf(*items)"),
level = DeprecationLevel.WARNING,
)*/
)
fun <T> threadSafeListOf(vararg items: T): MutableList<T> = atomicListOf(*items)
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,18 @@ object StringUtils {
return this.encodeURLParameter()
}

// Deprecate after next stable

/* @Deprecated(
@Deprecated(
message = "Use Ktor 'Url' naming convention instead.",
replaceWith = ReplaceWith("this.encodeUrl()"),
level = DeprecationLevel.WARNING,
) */
)
fun String.encodeUri(): String = encodeUrl()

/* @Deprecated(
@Deprecated(
message = "Use Ktor 'Url' naming convention instead.",
replaceWith = ReplaceWith("this.decodeUrl()"),
level = DeprecationLevel.WARNING,
) */
)
fun String.decodeUri(): String = decodeUrl()
}