From 3ea4a7fb474971d02fdaca310fd17dc5468f899b Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Wed, 2 Aug 2017 18:26:49 +0300 Subject: [PATCH] Drop support for JVM 1.4 in debugger Kotlin can't run on such JVM anyway. --- .../kotlin/idea/debugger/KotlinPositionManager.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/debugger/KotlinPositionManager.kt b/idea/src/org/jetbrains/kotlin/idea/debugger/KotlinPositionManager.kt index 5dbee420805..ac2f3ef8fd2 100644 --- a/idea/src/org/jetbrains/kotlin/idea/debugger/KotlinPositionManager.kt +++ b/idea/src/org/jetbrains/kotlin/idea/debugger/KotlinPositionManager.kt @@ -261,12 +261,8 @@ class KotlinPositionManager(private val myDebugProcess: DebugProcess) : MultiReq val line = position.line + 1 - val locations = if (myDebugProcess.virtualMachineProxy.versionHigher("1.4")) - type.locationsOfLine(KOTLIN_STRATA_NAME, null, line).filter { it.sourceName(KOTLIN_STRATA_NAME) == position.file.name } - else - type.locationsOfLine(line) - - if (locations == null || locations.isEmpty()) { + val locations = type.locationsOfLine(KOTLIN_STRATA_NAME, null, line).filter { it.sourceName(KOTLIN_STRATA_NAME) == position.file.name } + if (locations.isEmpty()) { throw NoDataException.INSTANCE }