From fb8e4e7c8df1a20e1458df4a2cfedc220764dec7 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridin Date: Fri, 3 Feb 2023 14:42:19 +0100 Subject: [PATCH] [FIR] FirBasedSymbol: add more info to kdoc ^KT-56046 --- .../src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt index 95591eea535..733d51aea2d 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/FirBasedSymbol.kt @@ -74,7 +74,10 @@ fun FirAnnotationContainer.resolvedAnnotationsWithArguments(anchorElement: FirBa fun List.resolvedAnnotationsWithArguments(anchorElement: FirBasedSymbol<*>): List { if (isEmpty()) return emptyList() - // this loop by index is required to avoid possible ConcurrentModificationException + /** + * This loop by index is required to avoid possible [ConcurrentModificationException], + * because the annotations might be in a process of resolve from some other threads + */ var hasAnnotationCallWithArguments = false for (i in indices) { val currentAnnotation = get(i)