We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38f631e commit bef3852Copy full SHA for bef3852
content/en/docs/languages/java/api.md
@@ -147,7 +147,7 @@ public class ContextUsage {
147
try (Scope scope = context.makeCurrent()) {
148
// The current context now contains the added value
149
// output => context value: value
150
- System.out.println("context value: " + context.get(exampleContextKey));
+ System.out.println("context value: " + Context.current().get(exampleContextKey));
151
}
152
153
// The local context var still contains the added value
0 commit comments