Skip to content

Commit

Permalink
Object traverser fix (#313)
Browse files Browse the repository at this point in the history
Object traverser fix
  • Loading branch information
avpotapov00 authored Apr 23, 2024
1 parent 65259bd commit 181bbe9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ private fun enumerateObjects(obj: Any, processedObjects: MutableSet<Any>, object
}

if (value is AtomicIntegerArray) {
value = (0..value.length()).map { (value as AtomicIntegerArray).get(it) }.toIntArray()
value = (0 until value.length()).map { (value as AtomicIntegerArray).get(it) }.toIntArray()
}
if (value is AtomicReferenceArray<*>) {
value = (0..value.length()).map { (value as AtomicReferenceArray<*>).get(it) }.toTypedArray()
value = (0 until value.length()).map { (value as AtomicReferenceArray<*>).get(it) }.toTypedArray()
}

if (value is AtomicReferenceFieldUpdater<*, *> || value is AtomicIntegerFieldUpdater<*> || value is AtomicLongFieldUpdater<*>) {
Expand Down

0 comments on commit 181bbe9

Please sign in to comment.