Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
PRJ-332: Do not forbid restarts in agent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
IKrukov-HORIS committed Nov 9, 2021
1 parent 2b94bae commit 524d7f6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ internal object IjRestartDisablerTransformer : TransformerSetupBase<IjInjector.A
Restarter::class.java to IjRestartDisablerTransformer::transformRestart,
)

override fun isTransformerAvailable(parameters: IjInjector.AgentParameters) = !parameters.isAgent

private fun transformRestart(clazz: CtClass): ByteArray {
clazz
.getDeclaredMethod("isSupported")
Expand Down

0 comments on commit 524d7f6

Please sign in to comment.