Skip to content

Commit 3d4423e

Browse files
Fix javadoc warnings across modules (#11747)
Fix javadoc warnings across modules Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Use JUnit example in ThreadUtils javadoc Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Drop needless javadoc on Closure overload Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: alexey.kuznetsov <alexey.kuznetsov@datadoghq.com>
1 parent 323008a commit 3d4423e

19 files changed

Lines changed: 64 additions & 68 deletions

File tree

communication/src/main/java/datadog/communication/serialization/GenerationalUtf8Cache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public int tenuredCapacity() {
136136
return this.tenuredEntries.length;
137137
}
138138

139-
/** Updates access time used @link {@link #getUtf8(String, String)} to the provided value */
139+
/** Updates the access time used by {@link #getUtf8(String)} to the provided value. */
140140
@SuppressFBWarnings("AT_NONATOMIC_64BIT_PRIMITIVE")
141141
public void updateAccessTime(long accessTimeMs) {
142142
this.accessTimeMs = accessTimeMs;

components/context/src/main/java/datadog/context/ContextKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.concurrent.atomic.AtomicInteger;
44

55
/**
6-
* {@link Context} key that maps to a value of type {@link T}.
6+
* {@link Context} key that maps to a value of type {@code T}.
77
*
88
* <p>Keys are compared by identity rather than by name. Each stored context type should either
99
* share its key for re-use or implement {@link ImplicitContextKeyed} to keep its key private.

components/environment/src/main/java/datadog/environment/ThreadSupport.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public final class ThreadSupport {
2424
private ThreadSupport() {}
2525

2626
/**
27-
* Provides the best identifier available for the current {@link Thread}. Uses {@link
28-
* Thread#threadId()} on 19+ or {@link Thread#getId()} on older JVMs.
27+
* Provides the best identifier available for the current {@link Thread}. Uses {@code
28+
* Thread.threadId()} on 19+ or {@link Thread#getId()} on older JVMs.
2929
*
3030
* @return The best identifier available for the current {@link Thread}.
3131
*/
@@ -34,8 +34,8 @@ public static long threadId() {
3434
}
3535

3636
/**
37-
* Provides the best identifier available for the given {@link Thread}. Uses {@link
38-
* Thread#threadId()} on 19+ or {@link Thread#getId()} on older JVMs.
37+
* Provides the best identifier available for the given {@link Thread}. Uses {@code
38+
* Thread.threadId()} on 19+ or {@link Thread#getId()} on older JVMs.
3939
*
4040
* @return The best identifier available for the given {@link Thread}.
4141
*/

components/json/src/main/java/datadog/json/JsonMapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static String toJson(Map<String, ?> map) {
6969
}
7070

7171
/**
72-
* Converts a {@link Iterable<String>} to a JSON array.
72+
* Converts a {@code Iterable<String>} to a JSON array.
7373
*
7474
* @param items The iterable to convert.
7575
* @return The converted JSON array as Java string.
@@ -132,10 +132,10 @@ public static Map<String, Object> fromJsonToMap(String json) throws IOException
132132
}
133133

134134
/**
135-
* Parses a JSON string array into a {@link List<String>}.
135+
* Parses a JSON string array into a {@code List<String>}.
136136
*
137137
* @param json The JSON string array to parse.
138-
* @return A {@link List<String>} containing the parsed JSON strings.
138+
* @return A {@code List<String>} containing the parsed JSON strings.
139139
* @throws IOException If the JSON is invalid or a reader error occurs.
140140
*/
141141
public static List<String> fromJsonToList(String json) throws IOException {

dd-trace-api/src/main/java/datadog/appsec/api/blocking/Blocking.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public static boolean tryCommitBlockingResponse(
6161
}
6262

6363
/**
64-
* Equivalent to calling {@link #tryCommitBlockingResponse(int, BlockingContentType, Map<String,
65-
* String>)} with the last parameter being an empty map.
64+
* Equivalent to calling {@link #tryCommitBlockingResponse(int, BlockingContentType, Map)} with
65+
* the last parameter being an empty map.
6666
*
6767
* @param statusCode the status code of the response
6868
* @param contentType the content-type of the response.

dd-trace-api/src/main/java/datadog/trace/api/GlobalTracer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static Tracer get() {
8686
}
8787

8888
/**
89-
* @deprecated use static methods in {@link EventTrackerV2} directly
89+
* @deprecated use static methods in {@link datadog.appsec.api.login.EventTrackerV2} directly
9090
*/
9191
@Deprecated
9292
public static EventTracker getEventTracker() {

dd-trace-api/src/main/java/datadog/trace/api/interceptor/MutableSpan.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public interface MutableSpan {
2929
Integer getSamplingPriority();
3030

3131
/**
32-
* @param newPriority
33-
* @return
34-
* @deprecated Use {@link io.opentracing.Span#setTag(String, boolean)} instead using either tag
32+
* @param newPriority the sampling priority to set
33+
* @return this {@link MutableSpan} instance, for chaining
34+
* @deprecated Use {@code io.opentracing.Span#setTag(String, boolean)} instead using either tag
3535
* names {@link datadog.trace.api.DDTags#MANUAL_KEEP} or {@link
3636
* datadog.trace.api.DDTags#MANUAL_DROP}.
3737
*/

dd-trace-api/src/main/java/datadog/trace/api/internal/TraceSegment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ default Object getTagCurrent(String key) {
132132
*
133133
* @param field field name
134134
* @param value value of the data
135-
* @see datadog.trace.common.writer.ddagent.TraceMapperV0_4.MetaStructWriter
136-
* @see datadog.trace.core.CoreSpan#setMetaStruct(String, Object)
135+
* @see "datadog.trace.common.writer.ddagent.TraceMapperV0_4.MetaStructWriter"
136+
* @see "datadog.trace.core.CoreSpan#setMetaStruct(String, Object)"
137137
*/
138138
void setMetaStructCurrent(String field, Object value);
139139

dd-trace-core/src/main/java/datadog/trace/common/sampling/SpanSamplingRules.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ private Rule(
108108
}
109109

110110
/**
111-
* Validate and create a {@link Rule} from its {@link JsonRule} representation.
111+
* Validate and create a {@link Rule} from its {@code JsonRule} representation.
112112
*
113-
* @param jsonRule The {@link JsonRule} to validate.
114-
* @return A {@link Rule} if the {@link JsonRule} is valid, {@code null} otherwise.
113+
* @param jsonRule The {@code JsonRule} to validate.
114+
* @return A {@link Rule} if the {@code JsonRule} is valid, {@code null} otherwise.
115115
*/
116116
public static Rule create(JsonRule jsonRule) {
117117
String service = SamplingRule.normalizeGlob(jsonRule.service);

dd-trace-core/src/main/java/datadog/trace/common/sampling/TraceSamplingRules.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ private Rule(
8787
}
8888

8989
/**
90-
* Validate and create a {@link Rule} from its {@link JsonRule} representation.
90+
* Validate and create a {@link Rule} from its {@code JsonRule} representation.
9191
*
92-
* @param jsonRule The {@link JsonRule} to validate.
93-
* @return A {@link Rule} if the {@link JsonRule} is valid, {@code null} otherwise.
92+
* @param jsonRule The {@code JsonRule} to validate.
93+
* @return A {@link Rule} if the {@code JsonRule} is valid, {@code null} otherwise.
9494
*/
9595
public static Rule create(JsonRule jsonRule) {
9696
String service = SamplingRule.normalizeGlob(jsonRule.service);

0 commit comments

Comments
 (0)