remove Range.Inclusive subclass (toString), #21548

* remove Range.Inclusive subclass (toString), #21548
* update java8-compat dependency for Scala 2.12-RC1
This commit is contained in:
Patrik Nordwall 2016-09-27 13:21:49 +02:00 committed by Johan Andrén
parent 6e0b8b98f3
commit d37fa8ec02
2 changed files with 3 additions and 6 deletions

View file

@ -156,9 +156,7 @@ object Source {
def range(start: Int, end: Int, step: Int): javadsl.Source[Integer, NotUsed] =
fromIterator[Integer](new function.Creator[util.Iterator[Integer]]() {
def create(): util.Iterator[Integer] =
new Inclusive(start, end, step) {
override def toString: String = s"Range($start to $end, step = $step)"
}.iterator.asJava.asInstanceOf[util.Iterator[Integer]]
Range.inclusive(start, end, step).iterator.asJava.asInstanceOf[util.Iterator[Integer]]
})
/**