From 365c726728e73ada86b8b3b06fcf5dd0f5e4ae4f Mon Sep 17 00:00:00 2001 From: Alexey Utkin Date: Wed, 30 Oct 2013 12:23:00 +0400 Subject: [PATCH] Fix OC-5992 Formatter: PsiComment.BlockFormatting ->PsiDocCommentBase +review CR-OC-1034 --- platform/core-api/src/com/intellij/psi/PsiComment.java | 8 -------- .../impl/source/codeStyle/CodeStyleManagerRunnable.java | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/platform/core-api/src/com/intellij/psi/PsiComment.java b/platform/core-api/src/com/intellij/psi/PsiComment.java index 3695a90d51b3..88de6171548b 100644 --- a/platform/core-api/src/com/intellij/psi/PsiComment.java +++ b/platform/core-api/src/com/intellij/psi/PsiComment.java @@ -28,12 +28,4 @@ public interface PsiComment extends PsiElement { * @return the token type of the comment. */ IElementType getTokenType(); - - /** - * The instance with implemented interface need to be formatted as set of formatting blocks. - * - * Applying for in-comment documentation that is similar, but different from Javadoc, - * and does not contain internal PSI nodes (injections). - */ - interface BlockFormatting {} } diff --git a/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerRunnable.java b/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerRunnable.java index 16e8abfec5e1..1b17faf21905 100644 --- a/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerRunnable.java +++ b/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerRunnable.java @@ -133,7 +133,7 @@ abstract class CodeStyleManagerRunnable { protected abstract T doPerform(int offset, TextRange range); private static boolean isInsidePlainComment(int offset, @Nullable PsiElement element) { - if (!(element instanceof PsiComment) || element instanceof PsiComment.BlockFormatting || !element.getTextRange().contains(offset)) { + if (!(element instanceof PsiComment) || element instanceof PsiDocCommentBase || !element.getTextRange().contains(offset)) { return false; }