Slide 112
Slide 112 text
#09 Deprecation Replacements
import com.google.common.base.Joiner
@Deprecated("Use Guava's Joiner.",
replaceWith = ReplaceWith("Joiner.on(sep).join(strings)",
imports = "com.google.common.base.Joiner"))X
fun join(sep: String, strings: List): String {
// ...
}Z
Joiner.on(", ").join(listOf("me", "you"))
join(", ", listOf("me", "you"))X