Skip to content

Commit 976372f

Browse files
authored
Fix dead references in Context module javadoc (#8486)
1 parent 846d7d8 commit 976372f

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

context/src/main/java/io/opentelemetry/context/Context.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ static Context root() {
112112
*
113113
* <p>This is generally used to create an {@link Executor} which will forward the {@link Context}
114114
* during an invocation to another thread. For example, you may use something like {@code Executor
115-
* dbExecutor = Context.wrapTasks(threadPool)} to ensure calls like {@code dbExecutor.execute(()
116-
* -> database.query())} have {@link Context} available on the thread executing database queries.
115+
* dbExecutor = Context.taskWrapping(threadPool)} to ensure calls like {@code
116+
* dbExecutor.execute(() -> database.query())} have {@link Context} available on the thread
117+
* executing database queries.
117118
*
118119
* @since 1.1.0
119120
*/
@@ -129,7 +130,7 @@ static Executor taskWrapping(Executor executor) {
129130
*
130131
* <p>This is generally used to create an {@link ExecutorService} which will forward the {@link
131132
* Context} during an invocation to another thread. For example, you may use something like {@code
132-
* ExecutorService dbExecutor = Context.wrapTasks(threadPool)} to ensure calls like {@code
133+
* ExecutorService dbExecutor = Context.taskWrapping(threadPool)} to ensure calls like {@code
133134
* dbExecutor.execute(() -> database.query())} have {@link Context} available on the thread
134135
* executing database queries.
135136
*
@@ -150,7 +151,7 @@ static ExecutorService taskWrapping(ExecutorService executorService) {
150151
*
151152
* <p>This is generally used to create an {@link ScheduledExecutorService} which will forward the
152153
* {@link Context} during an invocation to another thread. For example, you may use something like
153-
* {@code ScheduledExecutorService dbExecutor = Context.wrapTasks(threadPool)} to ensure calls
154+
* {@code ScheduledExecutorService dbExecutor = Context.taskWrapping(threadPool)} to ensure calls
154155
* like {@code dbExecutor.execute(() -> database.query())} have {@link Context} available on the
155156
* thread executing database queries.
156157
*

context/src/main/java/io/opentelemetry/context/propagation/TextMapPropagator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static TextMapPropagator noop() {
8282

8383
/**
8484
* The propagation fields defined. If your carrier is reused, you should delete the fields here
85-
* before calling {@link #inject(Context, Object, TextMapSetter)} )}.
85+
* before calling {@link #inject(Context, Object, TextMapSetter)}.
8686
*
8787
* <p>For example, if the carrier is a single-use or immutable request object, you don't need to
8888
* clear fields as they couldn't have been set before. If it is a mutable, retryable object,

0 commit comments

Comments
 (0)