Merge "Fix kotlin deprecation warnings"
This commit is contained in:
@@ -97,7 +97,7 @@ class StaleDataclassProcessor: AbstractProcessor() {
|
||||
|
||||
private fun elemToString(elem: Element): String {
|
||||
return buildString {
|
||||
append(elem.modifiers.joinToString(" ") { it.name.toLowerCase() })
|
||||
append(elem.modifiers.joinToString(" ") { it.name.lowercase() })
|
||||
append(" ")
|
||||
append(elem.annotationMirrors.joinToString(" ", transform = { annotationToString(it) }))
|
||||
append(" ")
|
||||
|
||||
@@ -29,7 +29,7 @@ object CodeUtils {
|
||||
*/
|
||||
fun hash(position: String, messageString: String, logLevel: LogLevel, logGroup: LogGroup): Int {
|
||||
return (position + messageString + logLevel.name + logGroup.name)
|
||||
.map { c -> c.toInt() }.reduce { h, c -> h * 31 + c }
|
||||
.map { c -> c.code }.reduce { h, c -> h * 31 + c }
|
||||
}
|
||||
|
||||
fun checkWildcardStaticImported(code: CompilationUnit, className: String, fileName: String) {
|
||||
|
||||
Reference in New Issue
Block a user