From dd825e95189a1959dd2e78b920e811325291b62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 4 Sep 2012 19:44:53 +0200 Subject: [PATCH] remove assertion in AbstractSuppressByNoInspectionCommentFix.isSuppressionComment --- .../impl/actions/AbstractSuppressByNoInspectionCommentFix.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java index e2370f68192f..72155c297c77 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java @@ -127,8 +127,7 @@ public abstract class AbstractSuppressByNoInspectionCommentFix extends SuppressI public static boolean isSuppressionComment(PsiElement comment) { final String lineCommentPrefix = getLineCommentPrefix(comment); - assert lineCommentPrefix != null; - return comment.getText().startsWith(lineCommentPrefix + SuppressionUtil.SUPPRESS_INSPECTIONS_TAG_NAME); + return lineCommentPrefix != null && comment.getText().startsWith(lineCommentPrefix + SuppressionUtil.SUPPRESS_INSPECTIONS_TAG_NAME); } @Nullable