Skip to content

Commit eac766c

Browse files
authored
Merge pull request #170 from DataDog/ark/fix_idea
Fix idea compile for mongo modules
2 parents ae2b85e + 394f36d commit eac766c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dd-java-agent/integrations/mongo-3.1/src/main/java/dd/inst/mongo/MongoClientInstrumentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public AgentBuilder instrument(AgentBuilder agentBuilder) {
2424
.and(
2525
declaresMethod(
2626
named("addCommandListener")
27-
.and(isPublic())
2827
.and(
2928
takesArguments(
3029
new TypeDescription.Latent(
3130
"com.mongodb.event.CommandListener",
3231
Modifier.PUBLIC,
3332
null,
34-
new TypeDescription.Generic[] {}))))))
33+
new TypeDescription.Generic[] {})))
34+
.and(isPublic()))))
3535
.transform(
3636
DDAdvice.create()
3737
.advice(

dd-java-agent/integrations/mongo-async-3.3/src/main/java/dd/inst/mongo/MongoAsyncClientInstrumentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public AgentBuilder instrument(AgentBuilder agentBuilder) {
2424
.and(
2525
declaresMethod(
2626
named("addCommandListener")
27-
.and(isPublic())
2827
.and(
2928
takesArguments(
3029
new TypeDescription.Latent(
3130
"com.mongodb.event.CommandListener",
3231
Modifier.PUBLIC,
3332
null,
34-
new TypeDescription.Generic[] {}))))))
33+
new TypeDescription.Generic[] {})))
34+
.and(isPublic()))))
3535
.transform(
3636
DDAdvice.create()
3737
.advice(

0 commit comments

Comments
 (0)