From e016dbeb69ccdef05db2b2162f2de26efaf9aefc Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Mon, 2 Jul 2018 11:42:00 +0200 Subject: [PATCH] cleanup (kotlin) --- platform/configuration-store-impl/src/ExportSettingsAction.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/configuration-store-impl/src/ExportSettingsAction.kt b/platform/configuration-store-impl/src/ExportSettingsAction.kt index 3879d3bcf6f4..4d461cf3312e 100644 --- a/platform/configuration-store-impl/src/ExportSettingsAction.kt +++ b/platform/configuration-store-impl/src/ExportSettingsAction.kt @@ -154,7 +154,7 @@ fun getExportableComponentsMap(onlyExisting: Boolean, val fileToContent = THashMap() - 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 {