GitOrigin-RevId: d0fe27129a67ead672b5dbd658e1b67a43329a6a
This commit is contained in:
Alexey Kudravtsev
2019-11-25 14:31:43 +00:00
committed by intellij-monorepo-bot
parent a331743dcd
commit 34a76dfe82
2 changed files with 2 additions and 0 deletions
@@ -168,6 +168,7 @@ public interface AnnotationHolder {
*/
@Contract(pure=true)
@ApiStatus.Experimental
@NotNull
default AnnotationBuilder newAnnotation(@NotNull TextRange range, @NotNull HighlightSeverity severity, @NotNull String message) {
throw new IllegalStateException("Please do not override AnnotationHolder, use standard provided one instead");
}
@@ -169,6 +169,7 @@ public class AnnotationHolderImpl extends SmartList<Annotation> implements Annot
void queueToUpdateIncrementally() {
}
@NotNull
@Override
public AnnotationBuilder newAnnotation(@NotNull TextRange range, @NotNull HighlightSeverity severity, @NotNull String message) {
return new B(this, range, severity, message);