Code cleanup: several inspections applied
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fdca96634e
commit
840847e47c
+1
-1
@@ -260,7 +260,7 @@ abstract class AbstractAnnotationProcessingExtension(
|
||||
log { "Saving incremental data: ${analyzedClasses.size} class names" }
|
||||
try {
|
||||
incrementalDataFile.parentFile.mkdirs()
|
||||
incrementalDataFile.writeText(analyzedClasses.map { "i $it" }.joinToString(LINE_SEPARATOR))
|
||||
incrementalDataFile.writeText(analyzedClasses.joinToString(LINE_SEPARATOR) { "i $it" })
|
||||
}
|
||||
catch (e: IOException) {
|
||||
log { "Unable to write $incrementalDataFile" }
|
||||
|
||||
+2
-2
@@ -71,7 +71,7 @@ class DefaultJeElementRenderer : JeElementRenderer {
|
||||
return if (modifiers.isEmpty())
|
||||
renderedAnnotations
|
||||
else
|
||||
renderedAnnotations + modifiers.map { it.name.toLowerCase() }.joinToString(" ", postfix = " ")
|
||||
renderedAnnotations + modifiers.joinToString(" ", postfix = " ") { it.name.toLowerCase() }
|
||||
}
|
||||
|
||||
private fun renderAnnotations(element: Element): String {
|
||||
@@ -111,7 +111,7 @@ class DefaultJeElementRenderer : JeElementRenderer {
|
||||
}
|
||||
}
|
||||
|
||||
private fun String.withMargin() = lines().map { MARGIN + it }.joinToString(LINE_SEPARATOR)
|
||||
private fun String.withMargin() = lines().joinToString(LINE_SEPARATOR) { MARGIN + it }
|
||||
|
||||
private companion object {
|
||||
val MARGIN = " "
|
||||
|
||||
Reference in New Issue
Block a user