Remove bogus filterIsInstance* on strings.

This commit is contained in:
Ilya Ryzhenkov
2014-04-15 16:03:47 +04:00
committed by Andrey Breslav
parent 6562ee4967
commit 9a7758bf4e
2 changed files with 2 additions and 17 deletions
@@ -78,7 +78,7 @@ fun specialJVM(): List<GenericFunction> {
typeParam("C : MutableCollection<in R>")
typeParam("R : T")
returns("C")
exclude(ArraysOfPrimitives)
exclude(ArraysOfPrimitives, Strings)
body {
"""
for (element in this) if (klass.isInstance(element)) destination.add(element as R)
@@ -96,7 +96,7 @@ fun specialJVM(): List<GenericFunction> {
return filterIsInstanceTo(ArrayList<R>(), klass)
"""
}
exclude(ArraysOfPrimitives)
exclude(ArraysOfPrimitives, Strings)
doc(Streams) { "Returns a stream containing all elements that are instances of specified class" }
returns(Streams) { "Stream<T>" }