Code cleanup: several inspections applied
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fdca96634e
commit
840847e47c
@@ -23,7 +23,7 @@ import org.jetbrains.kotlin.builtins.KotlinBuiltIns
|
||||
import org.jetbrains.kotlin.j2k.ast.*
|
||||
import org.jetbrains.kotlin.types.expressions.OperatorConventions
|
||||
|
||||
fun quoteKeywords(packageName: String): String = packageName.split('.').map { Identifier.toKotlin(it) }.joinToString(".")
|
||||
fun quoteKeywords(packageName: String): String = packageName.split('.').joinToString(".") { Identifier.toKotlin(it) }
|
||||
|
||||
fun getDefaultInitializer(property: Property): Expression? {
|
||||
val t = property.type
|
||||
|
||||
@@ -46,8 +46,7 @@ class Modifiers(modifiers: Collection<Modifier>) : Element() {
|
||||
modifiers.filter { it != Modifier.PUBLIC }
|
||||
val text = modifiersToInclude
|
||||
.sortedBy { it.ordinal }
|
||||
.map { it.toKotlin() }
|
||||
.joinToString(" ")
|
||||
.joinToString(" ") { it.toKotlin() }
|
||||
builder.append(text)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user