mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
[java-analysis] InferNullityAnnotationsAction: better behavior when nothing was found
GitOrigin-RevId: 974ee800b075c09118a2f87551da45d41cdf33fa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8c478f8da1
commit
55fb552005
@@ -271,9 +271,13 @@ public class InferNullityAnnotationsAction extends BaseAnalysisAction {
|
||||
};
|
||||
CommandProcessor.getInstance()
|
||||
.executeCommand(project, command, JavaBundle.message("action.title.infer.nullity.annotations"), null);
|
||||
NOTIFICATION_GROUP.createNotification(JavaBundle.message("notification.content.added.annotations", command.myCount),
|
||||
NotificationType.INFORMATION)
|
||||
.notify(project);
|
||||
if (command.myCount == 0) {
|
||||
NullityInferrer.nothingFoundMessage(project);
|
||||
} else {
|
||||
NOTIFICATION_GROUP.createNotification(JavaBundle.message("notification.content.added.annotations", command.myCount),
|
||||
NotificationType.INFORMATION)
|
||||
.notify(project);
|
||||
}
|
||||
}
|
||||
else {
|
||||
NullityInferrer.nothingFoundMessage(project);
|
||||
|
||||
Reference in New Issue
Block a user