File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed 
src/main/kotlin/translations/identification Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ import com.intellij.codeInsight.AnnotationUtil
3737import  com.intellij.codeInsight.completion.CompletionUtilCore 
3838import  com.intellij.codeInspection.dataFlow.CommonDataflow 
3939import  com.intellij.openapi.project.Project 
40+ import  com.intellij.openapi.util.RecursionManager 
4041import  com.intellij.psi.CommonClassNames 
4142import  com.intellij.psi.JavaPsiFacade 
4243import  com.intellij.psi.PsiElement 
@@ -86,7 +87,11 @@ object TranslationIdentifier {
8687        )?.constantValue as ?  Boolean  ? :  false 
8788
8889        val  translationKey =  when  (val  javaPsi =  element.javaPsi) {
89-             is  PsiExpression  ->  CommonDataflow .computeValue(javaPsi) as ?  String 
90+             is  PsiExpression  ->  {
91+                 RecursionManager .doPreventingRecursion(javaPsi, false ) {
92+                     CommonDataflow .computeValue(javaPsi) as ?  String 
93+                 }
94+             }
9095            else  ->  element.evaluateString()
9196        }?.replace(CompletionUtilCore .DUMMY_IDENTIFIER_TRIMMED , " " ? :  return  null 
9297
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments