mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
ENT-11343: Dont instrument files starting with jdk as well now. (#7741)
* ENT-11343: Dont instrument files starting with jdk as well now. * ENT-11343: Keep detekt happy.
This commit is contained in:
parent
da4cce23c3
commit
78bc8e3383
@ -6,7 +6,7 @@ description 'A javaagent to allow hooking into Kryo checkpoints'
|
||||
|
||||
dependencies {
|
||||
compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
compileOnly "org.javassist:javassist:$javaassist_version"
|
||||
implementation "org.javassist:javassist:$javaassist_version"
|
||||
compileOnly "com.esotericsoftware:kryo:$kryo_version"
|
||||
compileOnly "co.paralleluniverse:quasar-core:$quasar_version"
|
||||
|
||||
|
@ -127,7 +127,9 @@ object CheckpointHook : ClassFileTransformer {
|
||||
protectionDomain: ProtectionDomain?,
|
||||
classfileBuffer: ByteArray
|
||||
): ByteArray? {
|
||||
if (className.startsWith("java") || className.startsWith("javassist") || className.startsWith("kotlin")) {
|
||||
@Suppress("ComplexCondition")
|
||||
if (className.startsWith("java") || className.startsWith("javassist") || className.startsWith("kotlin")
|
||||
|| className.startsWith("jdk")) {
|
||||
return null
|
||||
}
|
||||
return try {
|
||||
|
Loading…
Reference in New Issue
Block a user