Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f2c4a37 authored by Cole Faust's avatar Cole Faust
Browse files

Fix kotlin deprecation warnings

Test: Presubmit
Change-Id: I3f64f72934e9cdc817a04ad14771478fe5be9664
parent ed2fdc4d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(" ")
+1 −1
Original line number Diff line number Diff line
@@ -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) {