diff --git a/plugins/allopen/allopen-cli/src/AllOpenDeclarationAttributeAltererExtension.kt b/plugins/allopen/allopen-cli/src/AllOpenDeclarationAttributeAltererExtension.kt index 021a070a7f1..951980e939c 100644 --- a/plugins/allopen/allopen-cli/src/AllOpenDeclarationAttributeAltererExtension.kt +++ b/plugins/allopen/allopen-cli/src/AllOpenDeclarationAttributeAltererExtension.kt @@ -22,7 +22,6 @@ import org.jetbrains.kotlin.descriptors.Modality import org.jetbrains.kotlin.extensions.AnnotationBasedExtension import org.jetbrains.kotlin.extensions.DeclarationAttributeAltererExtension import org.jetbrains.kotlin.lexer.KtTokens -import org.jetbrains.kotlin.psi.KtCallableDeclaration import org.jetbrains.kotlin.psi.KtModifierListOwner import org.jetbrains.kotlin.resolve.BindingContext @@ -49,10 +48,6 @@ abstract class AbstractAllOpenDeclarationAttributeAltererExtension : Declaration return null } - if (modifierListOwner.hasModifier(KtTokens.PRIVATE_KEYWORD) && modifierListOwner is KtCallableDeclaration) { - return null - } - val descriptor = declaration as? ClassDescriptor ?: containingDeclaration ?: return null if (descriptor.hasSpecialAnnotation(modifierListOwner)) { return if (!isImplicitModality && modifierListOwner.hasModifier(KtTokens.FINAL_KEYWORD)) diff --git a/plugins/allopen/allopen-cli/testData/bytecodeListing/privateMembers.txt b/plugins/allopen/allopen-cli/testData/bytecodeListing/privateMembers.txt index bf60c617304..b327b9b0d6e 100644 --- a/plugins/allopen/allopen-cli/testData/bytecodeListing/privateMembers.txt +++ b/plugins/allopen/allopen-cli/testData/bytecodeListing/privateMembers.txt @@ -14,7 +14,7 @@ class Test { protected @org.jetbrains.annotations.NotNull method getProtectedProp(): java.lang.String public @org.jetbrains.annotations.NotNull method getPublicProp(): java.lang.String public method internalMethod$test_module(): void - private final method privateMethod(): void + private method privateMethod(): void protected method protectedMethod(): void public method publicMethod(): void }