From 91568a2e890b7b6aba20f0b30b223dfcb6bfccd2 Mon Sep 17 00:00:00 2001 From: soWhoAmI Date: Wed, 20 Jan 2021 16:55:57 +0300 Subject: [PATCH] feature/inline-classes(#698) ### What's done: * Fixed bugs --- .../org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt index 34978c33bc..5a4264fd51 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt @@ -58,7 +58,7 @@ class InlineClassesRule(private val configRule: List) : Rule("inlin } else if (classPsi.getProperties().isEmpty() && classPsi.hasExplicitPrimaryConstructor()) { return classPsi.primaryConstructorParameters.size == 1 && !classPsi.primaryConstructorParameters.first().node.hasChildOfType(VAR_KEYWORD) && - classPsi.primaryConstructor?.visibilityModifierType()?.value ?: true == "public" + classPsi.primaryConstructor?.visibilityModifierType()?.value ?: "public" == "public" } return false }