Minor: refactoring UnusedSymbolInspection
This commit is contained in:
@@ -295,7 +295,7 @@ class UnusedSymbolInspection : AbstractKotlinInspection() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (declaration is KtObjectDeclaration && declaration.isCompanion() &&
|
return (declaration is KtObjectDeclaration && declaration.isCompanion() &&
|
||||||
declaration.getBody()?.declarations?.isNotEmpty() == true) ||
|
declaration.body?.declarations?.isNotEmpty() == true) ||
|
||||||
hasReferences(declaration, descriptor, restrictedScope) ||
|
hasReferences(declaration, descriptor, restrictedScope) ||
|
||||||
hasOverrides(declaration, restrictedScope) ||
|
hasOverrides(declaration, restrictedScope) ||
|
||||||
hasFakeOverrides(declaration, restrictedScope) ||
|
hasFakeOverrides(declaration, restrictedScope) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user