Skip to content

Commit cbd26e7

Browse files
committed
make links private in ddspan
1 parent 99e400b commit cbd26e7

File tree

2 files changed

+2
-2
lines changed
  • dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/asserts
  • dd-trace-core/src/main/java/datadog/trace/core

2 files changed

+2
-2
lines changed

dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/asserts/LinksAssert.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LinksAssert {
1414
private final Set<AgentSpanLink> assertedLinks = []
1515

1616
private LinksAssert(DDSpan span) {
17-
this.links = span.links // this is class protected but for the moment groovy can access it
17+
this.links = span.links // this is class private but for the moment groovy can access it
1818
}
1919

2020
static void assertLinks(DDSpan span,

dd-trace-core/src/main/java/datadog/trace/core/DDSpan.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static DDSpan create(
107107
*/
108108
private volatile int longRunningVersion = 0;
109109

110-
protected final List<AgentSpanLink> links;
110+
private final List<AgentSpanLink> links;
111111

112112
/**
113113
* Spans should be constructed using the builder, not by calling the constructor directly.

0 commit comments

Comments
 (0)