Fix idea compile for mongo modules
This commit is contained in:
parent
ae2b85ea51
commit
394f36d700
|
@ -24,14 +24,14 @@ public final class MongoClientInstrumentation implements Instrumenter {
|
||||||
.and(
|
.and(
|
||||||
declaresMethod(
|
declaresMethod(
|
||||||
named("addCommandListener")
|
named("addCommandListener")
|
||||||
.and(isPublic())
|
|
||||||
.and(
|
.and(
|
||||||
takesArguments(
|
takesArguments(
|
||||||
new TypeDescription.Latent(
|
new TypeDescription.Latent(
|
||||||
"com.mongodb.event.CommandListener",
|
"com.mongodb.event.CommandListener",
|
||||||
Modifier.PUBLIC,
|
Modifier.PUBLIC,
|
||||||
null,
|
null,
|
||||||
new TypeDescription.Generic[] {}))))))
|
new TypeDescription.Generic[] {})))
|
||||||
|
.and(isPublic()))))
|
||||||
.transform(
|
.transform(
|
||||||
DDAdvice.create()
|
DDAdvice.create()
|
||||||
.advice(
|
.advice(
|
||||||
|
|
|
@ -24,14 +24,14 @@ public final class MongoAsyncClientInstrumentation implements Instrumenter {
|
||||||
.and(
|
.and(
|
||||||
declaresMethod(
|
declaresMethod(
|
||||||
named("addCommandListener")
|
named("addCommandListener")
|
||||||
.and(isPublic())
|
|
||||||
.and(
|
.and(
|
||||||
takesArguments(
|
takesArguments(
|
||||||
new TypeDescription.Latent(
|
new TypeDescription.Latent(
|
||||||
"com.mongodb.event.CommandListener",
|
"com.mongodb.event.CommandListener",
|
||||||
Modifier.PUBLIC,
|
Modifier.PUBLIC,
|
||||||
null,
|
null,
|
||||||
new TypeDescription.Generic[] {}))))))
|
new TypeDescription.Generic[] {})))
|
||||||
|
.and(isPublic()))))
|
||||||
.transform(
|
.transform(
|
||||||
DDAdvice.create()
|
DDAdvice.create()
|
||||||
.advice(
|
.advice(
|
||||||
|
|
Loading…
Reference in New Issue