Skip to content

Commit 2f3807f

Browse files
feat: consider empty parameters as null
1 parent 31dc270 commit 2f3807f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal-api/src/main/java/datadog/trace/api/civisibility/config/TestIdentifier.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package datadog.trace.api.civisibility.config;
22

33
import datadog.trace.util.HashingUtils;
4+
import datadog.trace.util.Strings;
45
import java.util.Objects;
56
import javax.annotation.Nullable;
67

@@ -17,12 +18,12 @@ public class TestIdentifier {
1718

1819
public TestIdentifier(String suite, String name, @Nullable String parameters) {
1920
this.fqn = new TestFQN(suite, name);
20-
this.parameters = parameters;
21+
this.parameters = Strings.isNotBlank(parameters) ? parameters : null;
2122
}
2223

2324
public TestIdentifier(TestFQN testFQN, @Nullable String parameters) {
2425
this.fqn = testFQN;
25-
this.parameters = parameters;
26+
this.parameters = Strings.isNotBlank(parameters) ? parameters : null;
2627
}
2728

2829
public String getSuite() {

0 commit comments

Comments
 (0)