From 1b54162084d678ed8aa2b49f5a1fc759b7e3e1f7 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Thu, 11 Jun 2026 19:01:29 +0200 Subject: [PATCH] IJPL-245459 [java]: improve intention description and add to before template GitOrigin-RevId: 37580b99e518d31b6038e2971a85403dbb729fed --- .../AnnotateIntentionAction/before.java.template | 2 +- .../AnnotateIntentionAction/description.html | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/before.java.template b/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/before.java.template index 7aa758afd877..7f5db076853d 100644 --- a/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/before.java.template +++ b/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/before.java.template @@ -1,5 +1,5 @@ class A { - Object getObject() { + Object getObject() { //do smth return null; } diff --git a/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/description.html b/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/description.html index bcf09719b08b..0f1329492016 100644 --- a/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/description.html +++ b/java/java-impl/resources/intentionDescriptions/AnnotateIntentionAction/description.html @@ -1,4 +1,8 @@ -Adds an annotation, for example @Nullable/@NotNull, to the selected element. If the code belongs to a library, -the annotation will be stored in a separate file. +Adds an annotation, for example @Nullable or @NotNull, to the selected element. +The annotation will be stored in a separate annotations.xml file. +

+ This intention is available in the editor when the Use external annotations option is enabled under + Settings | Editor | Code Style | Java | Code Generation. +