Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 7b9031e

Browse files
committed
Mutableなままになっていた問題を修正
1 parent e745c82 commit 7b9031e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/com/mapk/core/ArgumentBucket.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ class ArgumentBucket internal constructor(
3737

3838
override val entries: Set<Map.Entry<KParameter, Any?>>
3939
get() = keyArray.mapNotNull { it?.let { Entry(it, valueArray[it.index]) } }.toSet()
40-
override val keys: MutableSet<KParameter>
41-
get() = keyArray.filterNotNull().toMutableSet()
42-
override val values: MutableCollection<Any?>
43-
get() = valueArray.filterIndexed { i, _ -> initializationStatusManager.isInitialized(i) }.toMutableList()
40+
override val keys: Set<KParameter>
41+
get() = keyArray.filterNotNull().toSet()
42+
override val values: Collection<Any?>
43+
get() = valueArray.filterIndexed { i, _ -> initializationStatusManager.isInitialized(i) }
4444

4545
fun putIfAbsent(key: KParameter, value: Any?) {
4646
val index = key.index

0 commit comments

Comments
 (0)