Fix codenarc errors
MODIFY
dd-trace/src/test/groovy/com/datadoghq/trace/SpanFactory.groovy
dd-trace/src/test/groovy/com/datadoghq/trace/SpanFactory.groovy
package com.datadoghq.trace
class SpanFactory {
- static def newSpanOf(long timestampMicro) {
+ static newSpanOf(long timestampMicro) {
def context = new DDSpanContext(
1L,
1L,
@@ -14,7 +14,7 @@ class SpanFactory {
"fakeType",
Collections.emptyMap(),
null,
- null);
+ null)
return new DDSpan(timestampMicro, context)
}
}

MODIFY
dd-trace/src/test/groovy/com/datadoghq/trace/writer/DDApiTest.groovy
dd-trace/src/test/groovy/com/datadoghq/trace/writer/DDApiTest.groovy
@@ -13,7 +13,7 @@ import static ratpack.groovy.test.embed.GroovyEmbeddedApp.ratpack
import static ratpack.http.MediaType.APPLICATION_JSON
class DDApiTest extends Specification {
- static def mapper = new ObjectMapper()
+ static mapper = new ObjectMapper()
def "sending an empty list of traces returns no errors"() {
setup:
@@ -74,7 +74,7 @@ class DDApiTest extends Specification {
client.sendTraces(traces)
requestContentType.get().type == APPLICATION_JSON
requestHeaders.get().get("Datadog-Meta-Lang") == "java"
- requestHeaders.get().get("Datadog-Meta-Lang-Version") == System.getProperty("java.version", "unknown");
+ requestHeaders.get().get("Datadog-Meta-Lang-Version") == System.getProperty("java.version", "unknown")
requestHeaders.get().get("Datadog-Meta-Tracer-Version") == "unknown"
convert(requestBody.get()) == expectedRequestBody

Fix codenarc errors