Skip to content

Commit

Permalink
fix c+p error
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsimpson committed Jun 4, 2024
1 parent f6ac5a0 commit f17bf7f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ class ApacheHttpClientInstrumentation extends InstrumentationBuilder {
.and(not(isAbstract()))
.and(takesArguments(2))
.and(takesArgument(0, named[TypeDescription]("org.apache.http.client.methods.HttpUriRequest")))
.and(takesArgument(1, named[TypeDescription]("import org.apache.http.client.ResponseHandler"))),
.and(takesArgument(1, named[TypeDescription]("org.apache.http.client.ResponseHandler"))),
classOf[UriRequestWithHandlerAdvisor]
)
.advise(
method("execute")
.and(not(isAbstract()))
.and(takesArguments(3))
.and(takesArgument(0, named[TypeDescription]("org.apache.http.client.methods.HttpUriRequest")))
.and(takesArgument(1, named[TypeDescription]("import org.apache.http.client.ResponseHandler")))
.and(takesArgument(1, named[TypeDescription]("org.apache.http.client.ResponseHandler")))
.and(takesArgument(2, named[TypeDescription]("org.apache.http.protocol.HttpContext"))),
classOf[UriRequestWithHandlerAdvisor]
)
Expand All @@ -70,7 +70,7 @@ class ApacheHttpClientInstrumentation extends InstrumentationBuilder {
.and(takesArguments(3))
.and(takesArgument(0, named[TypeDescription]("org.apache.http.HttpHost")))
.and(takesArgument(1, named[TypeDescription]("org.apache.http.HttpRequest")))
.and(takesArgument(2, named[TypeDescription]("import org.apache.http.client.ResponseHandler"))),
.and(takesArgument(2, named[TypeDescription]("org.apache.http.client.ResponseHandler"))),
classOf[RequestWithHandlerAdvisor]
)
.advise(
Expand All @@ -80,7 +80,7 @@ class ApacheHttpClientInstrumentation extends InstrumentationBuilder {
.and(takesArgument(0, named[TypeDescription]("org.apache.http.HttpHost")))
.and(takesArgument(1, named[TypeDescription]("org.apache.http.HttpRequest")))
.and(takesArgument(2, named[TypeDescription]("org.apache.http.protocol.HttpContext")))
.and(takesArgument(3, named[TypeDescription]("import org.apache.http.client.ResponseHandler"))),
.and(takesArgument(3, named[TypeDescription]("org.apache.http.client.ResponseHandler"))),
classOf[RequestWithHandlerAdvisor]
)

Expand Down

0 comments on commit f17bf7f

Please sign in to comment.