Fix double "deprecated" annotation in generated sources which confuses DX compiler.

This commit is contained in:
Ilya Ryzhenkov
2015-03-13 19:30:28 +03:00
parent df2d2dc21a
commit 4fa5d9cb48
3 changed files with 4 additions and 4 deletions
@@ -174,7 +174,8 @@ class GenericFunction(val signature: String, val keyword: String = "fun") : Comp
}.toString()
builder.append(text)
builder.appendln()
builder.appendln("deprecated(\"Migrate to using Sequence<T> and respective functions\")")
if (deprecates[f] == null && deprecate.isEmpty())
builder.appendln("deprecated(\"Migrate to using Sequence<T> and respective functions\")")
val streamText = text
.replace("Sequence", "Stream")
.replace("sequence", "stream")