[memory-agent] replacing 'commons-io' with stdlib

GitOrigin-RevId: 1eb48a64125e9039e921568b530da74757ea4943
This commit is contained in:
Roman Shevchenko
2025-03-28 16:03:18 +01:00
committed by intellij-monorepo-bot
parent 5af2b66472
commit 1cfcd4f211
2 changed files with 3 additions and 7 deletions

View File

@@ -26,7 +26,6 @@
</SOURCES>
</library>
</orderEntry>
<orderEntry type="library" name="commons-io" level="project" />
<orderEntry type="library" name="kotlin-stdlib" level="project" />
</component>
</module>

View File

@@ -1,10 +1,7 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.debugger.memory.agent.extractor
import org.apache.commons.io.IOUtils
class ProxyExtractor {
fun extractProxy(): ByteArray {
return IOUtils.toByteArray(ProxyExtractor::class.java.classLoader.getResourceAsStream("com/intellij/memory/agent/IdeaNativeAgentProxy.class"))
}
fun extractProxy(): ByteArray =
ProxyExtractor::class.java.classLoader.getResourceAsStream("com/intellij/memory/agent/IdeaNativeAgentProxy.class")!!.readAllBytes()
}