This commit is contained in:
Vladimir Krivosheev
2018-08-29 14:29:57 +02:00
parent b603ac04d8
commit 4e2772396f
@@ -1,6 +1,4 @@
/*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.configurations
import com.intellij.openapi.components.BaseState
@@ -125,13 +123,9 @@ class LogFileOptions : BaseState {
}
private class PathConverter : Converter<String>() {
override fun fromString(value: String): String? {
return FileUtilRt.toSystemDependentName(value)
}
override fun fromString(value: String) = FileUtilRt.toSystemDependentName(value)
override fun toString(value: String): String {
return FileUtilRt.toSystemIndependentName(value)
}
override fun toString(value: String) = FileUtilRt.toSystemIndependentName(value)
}
private class CharsetConverter : Converter<Charset>() {
@@ -142,10 +136,7 @@ private class CharsetConverter : Converter<Charset>() {
catch (ignored: Exception) {
Charset.defaultCharset()
}
}
override fun toString(value: Charset): String {
return value.name()
}
override fun toString(value: Charset) = value.name()
}