How can I annotate a PsiMethod

Answered

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
2 comments

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

0

thank you for your help. It was very usefull

0

Please sign in to leave a comment.