Fixed name shadowing
This commit is contained in:
parent
7452e1dc36
commit
89ea9acd5f
@ -911,6 +911,7 @@ object FileUtil {
|
|||||||
* @return true if the inputStream is a zip/jar stream. DOES NOT CLOSE THE STREAM
|
* @return true if the inputStream is a zip/jar stream. DOES NOT CLOSE THE STREAM
|
||||||
*/
|
*/
|
||||||
fun isZipStream(`in`: InputStream): Boolean {
|
fun isZipStream(`in`: InputStream): Boolean {
|
||||||
|
@Suppress("NAME_SHADOWING")
|
||||||
var `in` = `in`
|
var `in` = `in`
|
||||||
if (!`in`.markSupported()) {
|
if (!`in`.markSupported()) {
|
||||||
`in` = BufferedInputStream(`in`)
|
`in` = BufferedInputStream(`in`)
|
||||||
@ -1101,6 +1102,7 @@ object FileUtil {
|
|||||||
val jarList: MutableList<File> = LinkedList()
|
val jarList: MutableList<File> = LinkedList()
|
||||||
val directories = LinkedList<File?>()
|
val directories = LinkedList<File?>()
|
||||||
|
|
||||||
|
@Suppress("NAME_SHADOWING")
|
||||||
val rootDirectory = normalize(rootDirectory) ?: throw IOException("Root directory was invalid!")
|
val rootDirectory = normalize(rootDirectory) ?: throw IOException("Root directory was invalid!")
|
||||||
|
|
||||||
if (!rootDirectory.exists()) {
|
if (!rootDirectory.exists()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user