add -Xfuture option. fix warnings

view bounds and procedure syntax are deprecated
This commit is contained in:
xuwei-k
2018-04-01 22:43:47 +09:00
parent 4f92739d73
commit ac6fbd0bfa
7 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ object Checksums {
val buf = new Array[Byte](bufferSize)
md.reset()
@tailrec
def loop() {
def loop(): Unit = {
val len = is read buf
if (len != -1) {
md update (buf, 0, len)