From 2c7abdc7ffef07579c0bbf3f0f55d7e92fa53f17 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 12 Sep 2020 23:57:55 +0100 Subject: [PATCH] Use bufferedReader() extension method Signed-off-by: Graham --- crypto/src/test/java/dev/openrs2/crypto/IsaacRandomTest.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crypto/src/test/java/dev/openrs2/crypto/IsaacRandomTest.kt b/crypto/src/test/java/dev/openrs2/crypto/IsaacRandomTest.kt index d5b43a2dee..273611ed36 100644 --- a/crypto/src/test/java/dev/openrs2/crypto/IsaacRandomTest.kt +++ b/crypto/src/test/java/dev/openrs2/crypto/IsaacRandomTest.kt @@ -1,7 +1,5 @@ package dev.openrs2.crypto -import java.io.BufferedReader -import java.io.InputStreamReader import java.nio.ByteBuffer import java.nio.ByteOrder import kotlin.test.Test @@ -62,7 +60,7 @@ object IsaacRandomTest { private fun readVector(file: String): IntArray { val input = IsaacRandomTest::class.java.getResourceAsStream("isaac/$file") - return BufferedReader(InputStreamReader(input)).useLines { lines -> + return input.bufferedReader().useLines { lines -> val elements = mutableListOf() for (line in lines) {