[java-highlighting] Provide quick-fix for the "Package annotations should be in file package-info.java" error

IDEA-216254

GitOrigin-RevId: 9d8c4074babff861b5702caa09dd320de5d63d72
This commit is contained in:
Andrey Cherkasov
2022-12-08 12:57:18 +04:00
committed by intellij-monorepo-bot
parent 71ed47f845
commit 7bf9474dac
7 changed files with 200 additions and 21 deletions

View File

@@ -0,0 +1,10 @@
// "Remove" "true-preview"
package com.example;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target(ElementType.PACKAGE)
@interface Anno {
int value();
}

View File

@@ -0,0 +1,11 @@
// "Remove" "true-preview"
@Anno(value=42)<caret>
package com.example;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target(ElementType.PACKAGE)
@interface Anno {
int value();
}