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:
parent
6e0b8b98f3
commit
d37fa8ec02
2 changed files with 3 additions and 6 deletions
|
|
@ -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]]
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue