Fix idea compile for mongo modules

This commit is contained in:
Andrew Kent 2017-12-08 12:40:27 -08:00
parent ae2b85ea51
commit 394f36d700
2 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@ public final class MongoClientInstrumentation implements Instrumenter {
.and(
declaresMethod(
named("addCommandListener")
.and(isPublic())
.and(
takesArguments(
new TypeDescription.Latent(
"com.mongodb.event.CommandListener",
Modifier.PUBLIC,
null,
new TypeDescription.Generic[] {}))))))
new TypeDescription.Generic[] {})))
.and(isPublic()))))
.transform(
DDAdvice.create()
.advice(

View File

@ -24,14 +24,14 @@ public final class MongoAsyncClientInstrumentation implements Instrumenter {
.and(
declaresMethod(
named("addCommandListener")
.and(isPublic())
.and(
takesArguments(
new TypeDescription.Latent(
"com.mongodb.event.CommandListener",
Modifier.PUBLIC,
null,
new TypeDescription.Generic[] {}))))))
new TypeDescription.Generic[] {})))
.and(isPublic()))))
.transform(
DDAdvice.create()
.advice(