Fix usages of callable references with empty LHS in project

This commit is contained in:
Alexander Udalov
2015-10-03 00:40:15 +03:00
parent 659826d5c3
commit 7c0b3e31c7
2 changed files with 12 additions and 12 deletions
@@ -151,7 +151,7 @@ public object KotlinCompilerClient {
public var stop: Boolean = false public var stop: Boolean = false
) : OptionsGroup { ) : OptionsGroup {
override val mappers: List<PropMapper<*, *, *>> override val mappers: List<PropMapper<*, *, *>>
get() = listOf(BoolPropMapper(this, ::stop)) get() = listOf(BoolPropMapper(this, ClientOptions::stop))
} }
@@ -191,13 +191,13 @@ public data class DaemonJVMOptions(
) : OptionsGroup { ) : OptionsGroup {
override val mappers: List<PropMapper<*, *, *>> override val mappers: List<PropMapper<*, *, *>>
get() = listOf(StringPropMapper(this, ::maxMemory, listOf("Xmx"), mergeDelimiter = ""), get() = listOf(StringPropMapper(this, DaemonJVMOptions::maxMemory, listOf("Xmx"), mergeDelimiter = ""),
StringPropMapper(this, ::maxPermSize, listOf("XX:MaxPermSize"), mergeDelimiter = "="), StringPropMapper(this, DaemonJVMOptions::maxPermSize, listOf("XX:MaxPermSize"), mergeDelimiter = "="),
StringPropMapper(this, ::reservedCodeCacheSize, listOf("XX:ReservedCodeCacheSize"), mergeDelimiter = "="), StringPropMapper(this, DaemonJVMOptions::reservedCodeCacheSize, listOf("XX:ReservedCodeCacheSize"), mergeDelimiter = "="),
restMapper) restMapper)
val restMapper: RestPropMapper<*, *> val restMapper: RestPropMapper<*, *>
get() = RestPropMapper(this, ::jvmParams) get() = RestPropMapper(this, DaemonJVMOptions::jvmParams)
} }
@@ -209,10 +209,10 @@ public data class DaemonOptions(
) : OptionsGroup { ) : OptionsGroup {
override val mappers: List<PropMapper<*, *, *>> override val mappers: List<PropMapper<*, *, *>>
get() = listOf(PropMapper(this, ::runFilesPath, fromString = { it.trimQuotes() }), get() = listOf(PropMapper(this, DaemonOptions::runFilesPath, fromString = { it.trimQuotes() }),
PropMapper(this, ::autoshutdownMemoryThreshold, fromString = { it.toLong() }, skipIf = { it == 0L }, mergeDelimiter = "="), PropMapper(this, DaemonOptions::autoshutdownMemoryThreshold, fromString = { it.toLong() }, skipIf = { it == 0L }, mergeDelimiter = "="),
PropMapper(this, ::autoshutdownIdleSeconds, fromString = { it.toInt() }, skipIf = { it == 0 }, mergeDelimiter = "="), PropMapper(this, DaemonOptions::autoshutdownIdleSeconds, fromString = { it.toInt() }, skipIf = { it == 0 }, mergeDelimiter = "="),
NullablePropMapper(this, ::clientAliveFlagPath, fromString = { it }, toString = { "${it?.trimQuotes()}" }, mergeDelimiter = "=")) NullablePropMapper(this, DaemonOptions::clientAliveFlagPath, fromString = { it }, toString = { "${it?.trimQuotes()}" }, mergeDelimiter = "="))
} }
@@ -263,9 +263,9 @@ public data class CompilerId(
) : OptionsGroup { ) : OptionsGroup {
override val mappers: List<PropMapper<*, *, *>> override val mappers: List<PropMapper<*, *, *>>
get() = listOf(PropMapper(this, ::compilerClasspath, toString = { it.joinToString(File.pathSeparator) }, fromString = { it.trimQuotes().split(File.pathSeparator) }), get() = listOf(PropMapper(this, CompilerId::compilerClasspath, toString = { it.joinToString(File.pathSeparator) }, fromString = { it.trimQuotes().split(File.pathSeparator) }),
StringPropMapper(this, ::compilerDigest), StringPropMapper(this, CompilerId::compilerDigest),
StringPropMapper(this, ::compilerVersion)) StringPropMapper(this, CompilerId::compilerVersion))
public fun updateDigest() { public fun updateDigest() {
compilerDigest = compilerClasspath.getFilesClasspathDigest() compilerDigest = compilerClasspath.getFilesClasspathDigest()