Can be private -> could be private (violation of naming convention)

This commit is contained in:
Mikhail Glukhikh
2018-06-06 15:33:21 +03:00
parent 88974ee32b
commit a8737a1278
2 changed files with 15 additions and 15 deletions
@@ -153,7 +153,7 @@ class MemberVisibilityCanBePrivateInspection : AbstractKotlinInspection() {
val nameElement = (declaration as? PsiNameIdentifierOwner)?.nameIdentifier ?: return
holder.registerProblem(
declaration.visibilityModifier() ?: nameElement,
"$member '${declaration.getName()}' can be private",
"$member '${declaration.getName()}' could be private",
ProblemHighlightType.GENERIC_ERROR_OR_WARNING,
IntentionWrapper(AddModifierFix(modifierListOwner, KtTokens.PRIVATE_KEYWORD), declaration.containingKtFile)
)