Minor: refactoring UnusedSymbolInspection

This commit is contained in:
Dmitry Gridin
2019-03-21 13:03:16 +07:00
parent 3eda7c462b
commit 4441b1579f
@@ -295,7 +295,7 @@ class UnusedSymbolInspection : AbstractKotlinInspection() {
}
return (declaration is KtObjectDeclaration && declaration.isCompanion() &&
declaration.getBody()?.declarations?.isNotEmpty() == true) ||
declaration.body?.declarations?.isNotEmpty() == true) ||
hasReferences(declaration, descriptor, restrictedScope) ||
hasOverrides(declaration, restrictedScope) ||
hasFakeOverrides(declaration, restrictedScope) ||