Fixed name shadowing

This commit is contained in:
Robinson 2023-01-02 15:38:11 +01:00
parent 7452e1dc36
commit 89ea9acd5f
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -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<File> = LinkedList()
val directories = LinkedList<File?>()
@Suppress("NAME_SHADOWING")
val rootDirectory = normalize(rootDirectory) ?: throw IOException("Root directory was invalid!")
if (!rootDirectory.exists()) {