Cleanup: apply redundant string template inspection
This commit is contained in:
@@ -55,7 +55,7 @@ class ModulesDependenciesTest : TestCase() {
|
||||
|
||||
TestCase.assertTrue("Number of modules have dependencies to module $COMPILER_TESTS_MODULE_NAME. Such dependencies can cause multiple " +
|
||||
"tests execution on teamcity when running configuration with 'Search tests across module dependencies' enabled:\n" +
|
||||
"${badModulesList.joinToString(separator = "\n")}",
|
||||
badModulesList.joinToString(separator = "\n"),
|
||||
badModulesList.isEmpty())
|
||||
}
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@ abstract class AbstractWriteSignatureTest : TestCaseWithTmpdir() {
|
||||
companion object {
|
||||
fun formatSignature(header: String, jvmSignature: String?, genericSignature: String): String {
|
||||
return listOf(
|
||||
"$header",
|
||||
header,
|
||||
jvmSignature?.let { "jvm signature: $it" },
|
||||
"generic signature: $genericSignature"
|
||||
).filterNotNull().joinToString("\n") { "// $it" }
|
||||
|
||||
@@ -40,7 +40,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
println("prefix=$versionPrefix incrementPart=$incrementPart result=$result filePath=$filePath")
|
||||
|
||||
File("$filePath").writeText("$result")
|
||||
File(filePath).writeText(result)
|
||||
}
|
||||
|
||||
main(args)
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ class KotlinSuppressIntentionAction private constructor(
|
||||
when (suppressAt) {
|
||||
is KtModifierListOwner ->
|
||||
suppressAt.addAnnotation(KotlinBuiltIns.FQ_NAMES.suppress.toSafe(),
|
||||
"$id",
|
||||
id,
|
||||
whiteSpaceText = if (kind.newLineNeeded) "\n" else " ",
|
||||
addToExistingAnnotation = { entry ->
|
||||
addArgumentToSuppressAnnotation(entry, id)
|
||||
|
||||
@@ -51,11 +51,11 @@ class CommandExecutor(private val runner: KotlinConsoleRunner) {
|
||||
val processInputOS = processHandler.processInput ?: return logError(javaClass, "<p>Broken process stream</p>")
|
||||
val charset = (processHandler as? BaseOSProcessHandler)?.charset ?: Charsets.UTF_8
|
||||
|
||||
val xmlRes = "$XML_PREAMBLE" +
|
||||
val xmlRes = XML_PREAMBLE +
|
||||
"<input>" +
|
||||
"${StringUtil.escapeXml(
|
||||
StringUtil.escapeXml(
|
||||
StringUtil.replace(command, SOURCE_CHARS, XML_REPLACEMENTS)
|
||||
)}" +
|
||||
) +
|
||||
"</input>"
|
||||
|
||||
val bytes = ("$xmlRes\n").toByteArray(charset)
|
||||
|
||||
@@ -76,13 +76,13 @@ fun KtElement.renderTrimmed(): String {
|
||||
}
|
||||
|
||||
override fun visitPrefixExpression(expression: KtPrefixExpression) {
|
||||
builder.append("${expression.operationReference.getReferencedName()}")
|
||||
builder.append(expression.operationReference.getReferencedName())
|
||||
expression.baseExpression?.accept(this)
|
||||
}
|
||||
|
||||
override fun visitPostfixExpression(expression: KtPostfixExpression) {
|
||||
expression.baseExpression?.accept(this)
|
||||
builder.append("${expression.operationReference.getReferencedName()}")
|
||||
builder.append(expression.operationReference.getReferencedName())
|
||||
}
|
||||
|
||||
override fun visitBinaryExpression(expression: KtBinaryExpression) {
|
||||
|
||||
Reference in New Issue
Block a user