Skip to content

Commit e386083

Browse files
committed
comment
1 parent 78846ad commit e386083

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/main/java/com/microsoft/identity/common/internal/numberMatch/NumberMatchHelper.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ package com.microsoft.identity.common.internal.numberMatch
2525
import com.microsoft.identity.common.java.opentelemetry.AttributeName
2626
import com.microsoft.identity.common.java.opentelemetry.SpanExtension
2727
import com.microsoft.identity.common.logging.Logger
28+
import java.util.concurrent.ConcurrentHashMap
2829

2930
/**
3031
* Helper to facilitate NumberMatchFlow. Used in conjunction with {@link AuthUxJavaScriptInterface}
@@ -42,7 +43,7 @@ class NumberMatchHelper {
4243
// long enough for AuthApp to call the broker api to fetch the number match
4344
companion object {
4445
val TAG = NumberMatchHelper::class.java.simpleName
45-
val numberMatchMap: HashMap<String, String> = HashMap()
46+
val numberMatchMap: ConcurrentHashMap<String, String> = ConcurrentHashMap()
4647

4748
// Regex for GUID: 8-4-4-4-12 hex digits, case-insensitive
4849
val guidRegex = Regex("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$")

0 commit comments

Comments
 (0)