From f3b419377b94e4552a833158ffe462570009c11e Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Tue, 13 Mar 2018 13:44:21 +0100 Subject: [PATCH] Minor. Reformat --- .../resolve/jvm/checkers/JvmFieldApplicabilityChecker.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/JvmFieldApplicabilityChecker.kt b/compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/JvmFieldApplicabilityChecker.kt index a60a52e7e20..278f4f8a543 100644 --- a/compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/JvmFieldApplicabilityChecker.kt +++ b/compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/JvmFieldApplicabilityChecker.kt @@ -67,11 +67,10 @@ class JvmFieldApplicabilityChecker : DeclarationChecker { context.trace.report(ErrorsJvm.INAPPLICABLE_JVM_FIELD.on(annotationEntry, problem.errorMessage)) } - private fun PropertyDescriptor.hasCustomAccessor() - = !(getter?.isDefault ?: true) || !(setter?.isDefault ?: true) + private fun PropertyDescriptor.hasCustomAccessor() = !(getter?.isDefault ?: true) || !(setter?.isDefault ?: true) - private fun PropertyDescriptor.hasBackingField(bindingContext: BindingContext) - = bindingContext.get(BindingContext.BACKING_FIELD_REQUIRED, this) ?: false + private fun PropertyDescriptor.hasBackingField(bindingContext: BindingContext) = + bindingContext.get(BindingContext.BACKING_FIELD_REQUIRED, this) ?: false private fun PropertyDescriptor.isInsideCompanionObjectOfInterface(): Boolean { val containingClass = containingDeclaration as? ClassDescriptor ?: return false