From b2c6dd8d532cceb1a6d012c04fb17e56adfb7499 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 7 Jul 2021 14:32:46 +0300 Subject: [PATCH] Convert ClassKind.java to Kotlin --- .../src/org/jetbrains/kotlin/descriptors/ClassKind.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/compiler.common/src/org/jetbrains/kotlin/descriptors/ClassKind.kt b/core/compiler.common/src/org/jetbrains/kotlin/descriptors/ClassKind.kt index 4566e98a962..f06d41ff873 100644 --- a/core/compiler.common/src/org/jetbrains/kotlin/descriptors/ClassKind.kt +++ b/core/compiler.common/src/org/jetbrains/kotlin/descriptors/ClassKind.kt @@ -13,10 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package org.jetbrains.kotlin.descriptors -package org.jetbrains.kotlin.descriptors; - -public enum ClassKind { +enum class ClassKind { CLASS, INTERFACE, ENUM_CLASS, @@ -24,7 +23,6 @@ public enum ClassKind { ANNOTATION_CLASS, OBJECT; - public boolean isSingleton() { - return this == OBJECT || this == ENUM_ENTRY; - } + val isSingleton: Boolean + get() = this == OBJECT || this == ENUM_ENTRY }