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( .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(

View File

@ -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(