@@ -28,18 +28,14 @@ import org.utbot.framework.plugin.api.util.method
28
28
import org.utbot.framework.plugin.api.utils.ClassNameUtils
29
29
import org.utbot.framework.plugin.services.JdkInfo
30
30
import org.utbot.framework.process.generated.*
31
- import org.utbot.framework.process.generated.BeanAdditionalData
32
- import org.utbot.framework.process.generated.BeanDefinitionData
33
31
import org.utbot.framework.process.kryo.KryoHelper
34
32
import org.utbot.instrumentation.instrumentation.instrumenter.Instrumenter
35
33
import org.utbot.rd.IdleWatchdog
36
34
import org.utbot.rd.ClientProtocolBuilder
37
35
import org.utbot.rd.RdSettingsContainerFactory
38
36
import org.utbot.rd.generated.settingsModel
39
- import org.utbot.rd.terminateOnException
40
37
import org.utbot.sarif.RdSourceFindingStrategyFacade
41
38
import org.utbot.sarif.SarifReport
42
- import org.utbot.spring.process.SpringAnalyzerProcess
43
39
import org.utbot.summary.summarizeAll
44
40
import org.utbot.taint.TaintConfigurationProviderUserRules
45
41
import java.io.File
@@ -90,27 +86,6 @@ private fun EngineProcessModel.setup(kryoHelper: KryoHelper, watchdog: IdleWatch
90
86
)
91
87
UtContext .setUtContext(UtContext (classLoader))
92
88
}
93
- watchdog.measureTimeForActiveCall(getSpringBeanDefinitions, " Getting Spring bean definitions" ) { params ->
94
- try {
95
- val springAnalyzerProcess = SpringAnalyzerProcess .createBlocking(params.classpath.toList())
96
- val result = springAnalyzerProcess.terminateOnException { _ ->
97
- springAnalyzerProcess.getBeanDefinitions(
98
- kryoHelper.readObject(params.springSettings)
99
- )
100
- }
101
- springAnalyzerProcess.terminate()
102
- val beanDefinitions = result.beanDefinitions
103
- .map { data ->
104
- val additionalData = data.additionalData?.let { BeanAdditionalData (it.factoryMethodName, it.parameterTypes, it.configClassFqn) }
105
- BeanDefinitionData (data.beanName, data.beanTypeFqn, additionalData)
106
- }
107
- .toTypedArray()
108
- SpringAnalyzerResult (beanDefinitions)
109
- } catch (e: Exception ) {
110
- logger.error(e) { " Spring Analyzer crashed, resorting to using empty bean list" }
111
- SpringAnalyzerResult (emptyArray())
112
- }
113
- }
114
89
watchdog.measureTimeForActiveCall(createTestGenerator, " Creating Test Generator" ) { params ->
115
90
AnalyticsConfigureUtil .configureML()
116
91
Instrumenter .adapter = RdInstrumenter (realProtocol.rdInstrumenterAdapter)
0 commit comments