How can I annotate a PsiMethod

已回答

I'd like to annotate a method (PsiMethod) with @org.junit.Test

without using createAnnotationFromText

What is the right way to do that please ?

0

com.intellij.psi.PsiMethod#getModifierList -> com.intellij.psi.PsiAnnotationOwner#addAnnotation

0

thank you for your help. It was very usefull

0

请先登录再写评论。