Skip to content

Commit ca3adab

Browse files
ilya-gSpace Team
authored and
Space Team
committed
Remove bodies of atomic arrays size property
The body is not needed because the type is a builtin mapped type. (cherry picked from commit 13641d7)
1 parent a4aa20f commit ca3adab

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

analysis/decompiled/decompiler-to-psi/testData/builtins/atomics.kotlin_builtins.decompiled.text.kt

-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ package kotlin.concurrent.atomics
5959
public constructor(array: kotlin.IntArray) { /* compiled code */ }
6060

6161
public final val size: kotlin.Int /* compiled code */
62-
public final get
6362

6463
public final fun loadAt(index: kotlin.Int): kotlin.Int { /* compiled code */ }
6564

@@ -102,7 +101,6 @@ package kotlin.concurrent.atomics
102101
public constructor(array: kotlin.LongArray) { /* compiled code */ }
103102

104103
public final val size: kotlin.Int /* compiled code */
105-
public final get
106104

107105
public final fun loadAt(index: kotlin.Int): kotlin.Long { /* compiled code */ }
108106

libraries/stdlib/jvm/builtins/AtomicArrays.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public actual class AtomicIntArray {
2828
/**
2929
* Returns the number of elements in the array.
3030
*/
31-
public actual val size: Int get() = array.size
31+
public actual val size: Int
3232

3333
/**
3434
* Atomically loads the value from the element of this [AtomicIntArray] at the given [index].
@@ -136,7 +136,7 @@ public actual class AtomicLongArray {
136136
/**
137137
* Returns the number of elements in the array.
138138
*/
139-
public actual val size: Int get() = array.size
139+
public actual val size: Int
140140

141141
/**
142142
* Atomically loads the value from the element of this [AtomicLongArray] at the given [index].

0 commit comments

Comments
 (0)