From e554c9f53d8c3da36996beddcc194f8fe8989880 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Tue, 7 Oct 2014 19:53:20 +0400 Subject: [PATCH] Converted CompilerSettings to Kotlin. --- ...pilerSettings.java => CompilerSettings.kt} | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) rename ide-compiler-runner/src/org/jetbrains/jet/compiler/{CompilerSettings.java => CompilerSettings.kt} (53%) diff --git a/ide-compiler-runner/src/org/jetbrains/jet/compiler/CompilerSettings.java b/ide-compiler-runner/src/org/jetbrains/jet/compiler/CompilerSettings.kt similarity index 53% rename from ide-compiler-runner/src/org/jetbrains/jet/compiler/CompilerSettings.java rename to ide-compiler-runner/src/org/jetbrains/jet/compiler/CompilerSettings.kt index c1ca56b63c4..eb7703176f3 100644 --- a/ide-compiler-runner/src/org/jetbrains/jet/compiler/CompilerSettings.java +++ b/ide-compiler-runner/src/org/jetbrains/jet/compiler/CompilerSettings.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2013 JetBrains s.r.o. + * Copyright 2010-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,23 +14,12 @@ * limitations under the License. */ -package org.jetbrains.jet.compiler; - -import org.jetbrains.annotations.NotNull; +package org.jetbrains.jet.compiler public class CompilerSettings { - private static final String DEFAULT_ADDITIONAL_ARGUMENTS = "-version"; + public var additionalArguments: String = DEFAULT_ADDITIONAL_ARGUMENTS - @NotNull - private String additionalArguments = DEFAULT_ADDITIONAL_ARGUMENTS; - - @NotNull - public String getAdditionalArguments() { - return additionalArguments; + class object { + private val DEFAULT_ADDITIONAL_ARGUMENTS = "-version" } - - public void setAdditionalArguments(@NotNull String additionalArguments) { - this.additionalArguments = additionalArguments; - } - }