Paul N
08/22/2019, 8:53 AMval tokenMap = (session.getAttribute(sessionAttributeName) ?: mutableMapOf<String, AgedToken>()) as MutableMap<String, AgedToken>
Which means I do get a compiler warning "Warning:(39, 55) Kotlin: Unchecked cast: Any to MutableMap<String, AgedToken>"
Is there any way I can do this better and get rid of the warning ?spand
08/22/2019, 9:02 AMPaul N
08/22/2019, 9:17 AMkarelpeeters
08/22/2019, 9:21 AMspand
08/22/2019, 9:22 AMPaul N
08/22/2019, 9:48 AM