minor: simplify dependencies of setIdeaIoUseFallback
since kotlin needs now jvm 8 or above, we can drop the checks
This commit is contained in:
@@ -16,14 +16,6 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.cli.common.environment
|
package org.jetbrains.kotlin.cli.common.environment
|
||||||
|
|
||||||
import com.intellij.openapi.util.SystemInfo
|
|
||||||
|
|
||||||
fun setIdeaIoUseFallback() {
|
fun setIdeaIoUseFallback() {
|
||||||
val properties = System.getProperties()
|
System.setProperty("idea.io.use.nio2", java.lang.Boolean.TRUE.toString())
|
||||||
|
|
||||||
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())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user