diff --git a/context/src/main/java/io/opentelemetry/context/Context.java b/context/src/main/java/io/opentelemetry/context/Context.java index c5151571ec9..1debff0570c 100644 --- a/context/src/main/java/io/opentelemetry/context/Context.java +++ b/context/src/main/java/io/opentelemetry/context/Context.java @@ -42,7 +42,7 @@ *

A Context object can be {@linkplain #makeCurrent set} to the {@link ContextStorage}, which * effectively forms a scope for the context. The scope is bound to the current thread. * Within a scope, its Context is accessible even across API boundaries, through {@link #current}. - * The scope is later exited by {@link Scope#close()} closing} the scope. + * The scope is later exited by {@linkplain Scope#close() closing} the scope. * *

Context objects are immutable and inherit state from their parent. To add or overwrite the * current state a new context object must be created and then attached, replacing the previously diff --git a/context/src/main/java/io/opentelemetry/context/StrictContextStorage.java b/context/src/main/java/io/opentelemetry/context/StrictContextStorage.java index cf516414b82..ac4731dc101 100644 --- a/context/src/main/java/io/opentelemetry/context/StrictContextStorage.java +++ b/context/src/main/java/io/opentelemetry/context/StrictContextStorage.java @@ -125,7 +125,7 @@ public Context current() { * *

Note: It is important to close all resources prior to calling this, so that * in-flight operations are not mistaken as scope leaks. If this raises an error, consider if a - * {@linkplain Context#wrap(Executor)} wrapped executor} is still running. + * {@linkplain Context#wrap(Executor) wrapped executor} is still running. * * @throws AssertionError if any scopes were left unclosed. */