Skip to content

Commit 103bd6d

Browse files
committed
Minor, convert CommonConfigurationKeys to Kotlin
1 parent d499998 commit 103bd6d

File tree

3 files changed

+33
-35
lines changed

3 files changed

+33
-35
lines changed

compiler/frontend/src/org/jetbrains/kotlin/config/CommonConfigurationKeys.java

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2010-2015 JetBrains s.r.o.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.jetbrains.kotlin.config
18+
19+
object CommonConfigurationKeys {
20+
@JvmField
21+
val LANGUAGE_VERSION_SETTINGS = CompilerConfigurationKey<LanguageVersionSettings>("language version settings")
22+
23+
@JvmField
24+
val SKIP_METADATA_VERSION_CHECK = CompilerConfigurationKey<Boolean>("skip metadata version check")
25+
26+
@JvmField
27+
val DISABLE_INLINE = CompilerConfigurationKey<Boolean>("disable inline")
28+
29+
@JvmField
30+
val MODULE_NAME = CompilerConfigurationKey<String>("module name")
31+
}

compiler/frontend/src/org/jetbrains/kotlin/config/CompilerConfigurationKey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@
2323
public class CompilerConfigurationKey<T> {
2424
Key<T> ideaKey;
2525

26-
private CompilerConfigurationKey(@NotNull @NonNls String name) {
26+
public CompilerConfigurationKey(@NotNull @NonNls String name) {
2727
ideaKey = Key.create(name);
2828
}
2929

30+
@NotNull
3031
public static <T> CompilerConfigurationKey<T> create(@NotNull @NonNls String name) {
3132
return new CompilerConfigurationKey<T>(name);
3233
}

0 commit comments

Comments
 (0)