check protected 'serializable' methods (IDEA-74261)

This commit is contained in:
anna
2011-09-15 17:59:07 +02:00
parent 8e2f09ce12
commit f4e8b0e7fc
@@ -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)) {