Skip to content

Commit e7472ee

Browse files
committed
Make functions private when possible
1 parent 448528e commit e7472ee

File tree

1 file changed

+2
-2
lines changed
  • kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/Job.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ public open class JobSupport(active: Boolean) : AbstractCoroutineContextElement(
521521

522522
// when Job is in Cancelling state, it can only be promoted to Cancelled state with the same cause
523523
// however, null cause can be replaced with more specific CancellationException (that contains stack trace)
524-
protected fun coerceProposedUpdate(expect: Any, proposedUpdate: Any?): Any? =
524+
private fun coerceProposedUpdate(expect: Any, proposedUpdate: Any?): Any? =
525525
if (expect is Cancelling && !correspondinglyCancelled(expect, proposedUpdate))
526526
expect.cancelled else proposedUpdate
527527

@@ -596,7 +596,7 @@ public open class JobSupport(active: Boolean) : AbstractCoroutineContextElement(
596596
// FALSE when not new,
597597
// TRUE when started
598598
// RETRY when need to retry
599-
internal fun startInternal(state: Any?): Int {
599+
private fun startInternal(state: Any?): Int {
600600
when (state) {
601601
is Empty -> { // EMPTY_X state -- no completion handlers
602602
if (state.isActive) return FALSE // already active

0 commit comments

Comments
 (0)