From 89ea9acd5fcd860aab17f596031cb68e7e8b90a3 Mon Sep 17 00:00:00 2001 From: Robinson Date: Mon, 2 Jan 2023 15:38:11 +0100 Subject: [PATCH] Fixed name shadowing --- src/dorkbox/util/FileUtil.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dorkbox/util/FileUtil.kt b/src/dorkbox/util/FileUtil.kt index 247318d..0c36891 100644 --- a/src/dorkbox/util/FileUtil.kt +++ b/src/dorkbox/util/FileUtil.kt @@ -911,6 +911,7 @@ object FileUtil { * @return true if the inputStream is a zip/jar stream. DOES NOT CLOSE THE STREAM */ fun isZipStream(`in`: InputStream): Boolean { + @Suppress("NAME_SHADOWING") var `in` = `in` if (!`in`.markSupported()) { `in` = BufferedInputStream(`in`) @@ -1101,6 +1102,7 @@ object FileUtil { val jarList: MutableList = LinkedList() val directories = LinkedList() + @Suppress("NAME_SHADOWING") val rootDirectory = normalize(rootDirectory) ?: throw IOException("Root directory was invalid!") if (!rootDirectory.exists()) {