minor: simplify dependencies of setIdeaIoUseFallback

since kotlin needs now jvm 8 or above, we can drop the checks
This commit is contained in:
Ilya Chernikov
2022-05-18 15:50:33 +02:00
committed by teamcity
parent 9912df0daf
commit bffe94e48a
@@ -16,14 +16,6 @@
package org.jetbrains.kotlin.cli.common.environment
import com.intellij.openapi.util.SystemInfo
fun setIdeaIoUseFallback() {
val properties = System.getProperties()
properties.setProperty("idea.io.use.nio2", java.lang.Boolean.TRUE.toString())
if (!(SystemInfo.isJavaVersionAtLeast(1, 7, 0) && "1.7.0-ea" != SystemInfo.JAVA_VERSION)) {
properties.setProperty("idea.io.use.fallback", java.lang.Boolean.TRUE.toString())
}
System.setProperty("idea.io.use.nio2", java.lang.Boolean.TRUE.toString())
}