Skip to content

Commit 9f78da2

Browse files
committed
chore: Make spotless happy
1 parent 681b9df commit 9f78da2

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

dd-java-agent/instrumentation/apache-httpclient/apache-httpclient-4.0/src/iastIntegrationTest/groovy/IastHttpClientIntegrationTest.groovy

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ class IastHttpClientIntegrationTest extends IastHttpServerTest<Server> {
4646
@Override
4747
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
4848
final msg = controller.apacheSsrf(
49-
VulnerableUrlBuilder.url(req),
50-
req.getParameter('clientClassName'),
51-
req.getParameter('method'),
52-
req.getParameter('requestType'),
53-
req.getParameter('scheme')
49+
VulnerableUrlBuilder.url(req),
50+
req.getParameter('clientClassName'),
51+
req.getParameter('method'),
52+
req.getParameter('requestType'),
53+
req.getParameter('scheme')
5454
)
5555
resp.setStatus(200)
5656
resp.writer.write(msg)
@@ -112,12 +112,12 @@ class IastHttpClientIntegrationTest extends IastHttpServerTest<Server> {
112112
private List<TestSuite> createTestSuite(client, method, request, scheme) {
113113
return TaintedTarget.values().collect {
114114
new TestSuite(
115-
description: "Tainted ${it.name()} with ${client} client and ${method} method with ${request} and ${scheme} scheme",
116-
executedMethod: method.name(),
117-
clientImplementation: client,
118-
requestType: request.name(),
119-
scheme: scheme,
120-
tainted: it
115+
description: "Tainted ${it.name()} with ${client} client and ${method} method with ${request} and ${scheme} scheme",
116+
executedMethod: method.name(),
117+
clientImplementation: client,
118+
requestType: request.name(),
119+
scheme: scheme,
120+
tainted: it
121121
)
122122
}
123123
}
@@ -145,14 +145,14 @@ class IastHttpClientIntegrationTest extends IastHttpServerTest<Server> {
145145

146146
HttpUrl url(final URI address) {
147147
final builder = new HttpUrl.Builder()
148-
.scheme(address.getScheme())
149-
.host(address.getHost())
150-
.port(address.getPort())
151-
.addPathSegments('ssrf/execute')
152-
.addQueryParameter('clientClassName', clientImplementation)
153-
.addQueryParameter('method', executedMethod)
154-
.addQueryParameter('requestType', requestType)
155-
.addQueryParameter('scheme', scheme)
148+
.scheme(address.getScheme())
149+
.host(address.getHost())
150+
.port(address.getPort())
151+
.addPathSegments('ssrf/execute')
152+
.addQueryParameter('clientClassName', clientImplementation)
153+
.addQueryParameter('method', executedMethod)
154+
.addQueryParameter('requestType', requestType)
155+
.addQueryParameter('scheme', scheme)
156156
tainted.addTainted(builder, this)
157157
return builder.build()
158158
}

dd-java-agent/instrumentation/apache-httpclient/apache-httpclient-4.0/src/iastIntegrationTest/java/foo/bar/VulnerableUrlBuilder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package foo.bar;
22

3-
import datadog.trace.agent.test.server.http.TestHttpServer.HandlerApi.RequestApi;
43
import javax.servlet.http.HttpServletRequest;
54

65
/** Class to be instrumented by IAST call sites containing methods to work with urls */

0 commit comments

Comments
 (0)