AddAnnotationPsiFix#addPhysicalAnnotationIfAbsent; properly support arrays

Fixes IDEA-177643 Action "Generate Delegate Method" creates double annotation when method parameter is annotated array

GitOrigin-RevId: 38ac44f66304df06480fa6ca64993fda72a591a8
This commit is contained in:
Tagir Valeev
2020-04-08 04:08:55 +00:00
committed by intellij-monorepo-bot
parent f93594a8db
commit 582a922231
8 changed files with 71 additions and 20 deletions
@@ -1,4 +1,9 @@
import org.jetbrains.annotations.NotNull;
package org.jetbrains.annotations;
import java.lang.annotation.*;
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
@interface NotNull {}
class Test1 {
void m(@NotNull String... strings) { }
@@ -1,4 +1,9 @@
import org.jetbrains.annotations.NotNull;
package org.jetbrains.annotations;
import java.lang.annotation.*;
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
@interface NotNull {}
class Test1 {
void m(@NotNull String... strings) { }