mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
kotlin M13 compatibility
This commit is contained in:
@@ -125,12 +125,16 @@ private class ImportSettingsAction : AnAction(), DumbAware {
|
||||
|
||||
private fun getComponentsStored(settings: File, registeredComponents: Collection<ExportableItem>): List<ExportableItem> {
|
||||
val zipEntries = THashSet<String>()
|
||||
ZipFile(settings).use {
|
||||
val enumeration = it.entries()
|
||||
val zipFile = ZipFile(settings)
|
||||
try {
|
||||
val enumeration = zipFile.entries()
|
||||
while (enumeration.hasMoreElements()) {
|
||||
zipEntries.add(enumeration.nextElement().name)
|
||||
}
|
||||
}
|
||||
finally {
|
||||
zipFile.close()
|
||||
}
|
||||
|
||||
val configPath = File(PathManager.getConfigPath())
|
||||
val components = ArrayList<ExportableItem>()
|
||||
|
||||
Reference in New Issue
Block a user