From 04d9d243de197b488e38d8e72d297666c12b216d Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 14 Jul 2021 11:38:36 +0300 Subject: [PATCH] [Test] Convert TestJdkKind.java to Kotlin --- .../org/jetbrains/kotlin/test/TestJdkKind.kt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TestJdkKind.kt b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TestJdkKind.kt index fa450d20f1c..76c7a1ee7a4 100644 --- a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TestJdkKind.kt +++ b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TestJdkKind.kt @@ -13,21 +13,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package org.jetbrains.kotlin.test -package org.jetbrains.kotlin.test; - -public enum TestJdkKind { +enum class TestJdkKind { MOCK_JDK, + // Differs from common mock JDK only by one additional 'nonExistingMethod' in Collection and constructor from Double in Throwable // It's needed to test the way we load additional built-ins members that neither in black nor white lists // Also, now it contains new methods in java.lang.String introduced in JDK 11 MODIFIED_MOCK_JDK, + // JDK found at $JDK_16 FULL_JDK_6, - // JDK found at $JDK_19 + + // JDK found at $JDK_9 FULL_JDK_9, + // JDK found at $JDK_15 FULL_JDK_15, + + // JDK found at $JDK_15 + FULL_JDK_17, + // JDK found at java.home FULL_JDK, ANDROID_API,