=str #22666 fix FileIO parameter type to OpenOptions

This commit is contained in:
Konrad `ktoso` Malawski 2017-04-01 09:40:40 +02:00
parent 650e7b9a7f
commit 7dcea0a4d8
4 changed files with 18 additions and 17 deletions

View file

@ -4,7 +4,7 @@
package akka.stream.impl.io
import java.nio.channels.FileChannel
import java.nio.file.{ Path, StandardOpenOption }
import java.nio.file.{ OpenOption, Path, StandardOpenOption }
import akka.Done
import akka.actor.{ ActorLogging, Deploy, Props }
@ -19,7 +19,7 @@ import scala.util.{ Failure, Success }
/** INTERNAL API */
@InternalApi private[akka] object FileSubscriber {
def props(f: Path, completionPromise: Promise[IOResult], bufSize: Int, openOptions: Set[StandardOpenOption]) = {
def props(f: Path, completionPromise: Promise[IOResult], bufSize: Int, openOptions: Set[OpenOption]) = {
require(bufSize > 0, "buffer size must be > 0")
Props(classOf[FileSubscriber], f, completionPromise, bufSize, openOptions).withDeploy(Deploy.local)
}