Skip to content
Snippets Groups Projects
Commit 6f2c4a37 authored by Cole Faust's avatar Cole Faust
Browse files

Fix kotlin deprecation warnings

Test: Presubmit
Change-Id: I3f64f72934e9cdc817a04ad14771478fe5be9664
parent ed2fdc4d
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment