cleanup (kotlin)

This commit is contained in:
Vladimir Krivosheev
2018-07-02 11:59:49 +02:00
parent e8248f01ca
commit e016dbeb69
@@ -154,7 +154,7 @@ fun getExportableComponentsMap(onlyExisting: Boolean,
val fileToContent = THashMap<Path, String>()
ServiceManagerImpl.processAllImplementationClasses(ApplicationManager.getApplication() as ApplicationImpl, { aClass, pluginDescriptor ->
ServiceManagerImpl.processAllImplementationClasses(ApplicationManager.getApplication() as ApplicationImpl) { aClass, pluginDescriptor ->
val stateAnnotation = StoreUtil.getStateSpec(aClass)
@Suppress("DEPRECATION")
if (stateAnnotation == null || stateAnnotation.name.isEmpty() || ExportableComponent::class.java.isAssignableFrom(aClass)) {
@@ -200,7 +200,7 @@ fun getExportableComponentsMap(onlyExisting: Boolean,
}
}
true
})
}
// must be in the end - because most of SchemeManager clients specify additionalExportFile in the State spec
(SchemeManagerFactory.getInstance() as SchemeManagerFactoryBase).process {