From f4e8b0e7fc004d1f9315f054b7d4c841dd46b801 Mon Sep 17 00:00:00 2001 From: anna Date: Thu, 15 Sep 2011 15:23:59 +0200 Subject: [PATCH] check protected 'serializable' methods (IDEA-74261) --- .../codeInsight/daemon/impl/PostHighlightingPass.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java index 65db0bdae690..62e6e4f75e71 100644 --- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java +++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java @@ -484,9 +484,9 @@ public class PostHighlightingPass extends TextEditorHighlightingPass { HighlightInfoType highlightInfoType = HighlightInfoType.UNUSED_SYMBOL; HighlightDisplayKey highlightDisplayKey = myUnusedSymbolKey; + if (HighlightMethodUtil.isSerializationRelatedMethod(method, containingClass)) return null; if (isPrivate) { - if (HighlightMethodUtil.isSerializationRelatedMethod(method, containingClass) || - isIntentionalPrivateConstructor(method, containingClass)) { + if (isIntentionalPrivateConstructor(method, containingClass)) { return null; } if (isImplicitUsage(method, progress)) {