mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-238968 Clarification about default element in AnnotationBuilder created by AnnotationHolder
GitOrigin-RevId: ef3af2d0584650bbc63bddb62f185b389ff06594
This commit is contained in:
committed by
intellij-monorepo-bot
parent
abb8c9be91
commit
80c6307836
@@ -203,6 +203,8 @@ public interface AnnotationHolder {
|
||||
*
|
||||
* @param severity The severity of the annotation.
|
||||
* @param message The message this annotation will show in the status bar and the tooltip.
|
||||
* @apiNote builder created by this method is already initialized by current element. E.g. psiElement currently visited by inspection
|
||||
* visitor. Meaning you need to set explicit range or element for the annotation only if it differs from current element. E.g. name identifier.
|
||||
*/
|
||||
@Contract(pure = true)
|
||||
@NotNull
|
||||
@@ -217,6 +219,8 @@ public interface AnnotationHolder {
|
||||
* For example: <p>{@code holder.newSilentAnnotation(HighlightSeverity.WARNING).textAttributes(MY_ATTRIBUTES_KEY).create();}</p>
|
||||
*
|
||||
* @param severity The severity of the annotation.
|
||||
* @apiNote builder created by this method is already initialized by current element. E.g. psiElement currently visited by inspection
|
||||
* visitor. Meaning you need to set explicit range or element for the annotation only if it differs from current element. E.g. name identifier.
|
||||
*/
|
||||
@Contract(pure = true)
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user