Skip to content

Commit

Permalink
Move clasess to Kotlin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival committed Dec 16, 2024
1 parent 52d070c commit 3d47333
Show file tree
Hide file tree
Showing 165 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package org.cqframework.cql.cql2elm.tracking

import java.lang.ref.WeakReference
import java.util.concurrent.ConcurrentHashMap

const val DEFAULT_CLEANUP_THRESHOLD = 1000
const val DEFAULT_CLEANUP_THRESHOLD = 10000

/**
* This is a map that uses weak references for keys. This means that if the key is no longer
Expand All @@ -13,7 +12,7 @@ const val DEFAULT_CLEANUP_THRESHOLD = 1000
*/
internal class WeakIdentityHashMap<K : Any, V> {

private val backingMap = ConcurrentHashMap<WeakKey<K>, V>()
private val backingMap = HashMap<WeakKey<K>, V>()
private var operationCount = 0
private val cleanupThreshold = DEFAULT_CLEANUP_THRESHOLD

Expand Down

0 comments on commit 3d47333

Please sign in to comment.