From 4e2772396f270f8aabee32add711c7eca954deb5 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Wed, 29 Aug 2018 12:40:22 +0200 Subject: [PATCH] cleanup --- .../execution/configurations/LogFileOptions.kt | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/platform/lang-api/src/com/intellij/execution/configurations/LogFileOptions.kt b/platform/lang-api/src/com/intellij/execution/configurations/LogFileOptions.kt index 2c4173fb6261..fca3bf419c6d 100644 --- a/platform/lang-api/src/com/intellij/execution/configurations/LogFileOptions.kt +++ b/platform/lang-api/src/com/intellij/execution/configurations/LogFileOptions.kt @@ -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() { - 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() { @@ -142,10 +136,7 @@ private class CharsetConverter : Converter() { catch (ignored: Exception) { Charset.defaultCharset() } - } - override fun toString(value: Charset): String { - return value.name() - } + override fun toString(value: Charset) = value.name() } \ No newline at end of file