KT-14779 Inspection to replace String.format with string templates (#1645)

* Add inspection to replace String.format with string templates #KT-14779 Fixed

* KT-14779 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-06-20 22:23:04 +09:00
committed by Vyacheslav Gerasimov
parent e41a34af88
commit 6675d7814c
22 changed files with 326 additions and 0 deletions
@@ -0,0 +1,12 @@
// WITH_RUNTIME
// HIGHLIGHT: INFORMATION
fun test() {
val foo = 1
<caret>String.format("foo is %s, bar is %s.", foo, Bar().value)
}
class Bar {
val value = 2
}