Skip to content

Commit 31dce73

Browse files
committed
Do not show unsafe options by default in the docs
1 parent e41143e commit 31dce73

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

docs/site/01-jvm-developers.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ audience_identifier: jvm
100100
{%- highlight java -%}
101101
import org.graalvm.polyglot.Context;
102102

103-
try (Context context = Context.newBuilder()
104-
.allowAllAccess(true) // See documentation for options
105-
.build()) {
103+
try (Context context = Context.newBuilder().build()) {
106104
context.eval("python", "print('Hello from GraalPy!')");
107105
}
108106
{%- endhighlight -%}
@@ -131,9 +129,7 @@ dependencies {
131129
{%- highlight java -%}
132130
import org.graalvm.polyglot.Context;
133131

134-
try (Context context = Context.newBuilder()
135-
.allowAllAccess(true) // See documentation for options
136-
.build()) {
132+
try (Context context = Context.newBuilder().build()) {
137133
context.eval("python", "print('Hello from GraalPy!')");
138134
}
139135
{%- endhighlight -%}

docs/site/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ layout: base
2727
{%- highlight java -%}
2828
import org.graalvm.polyglot.Context;
2929

30-
try (Context context = Context.newBuilder()
31-
.allowAllAccess(true) // See documentation for options
32-
.build()) {
30+
try (Context context = Context.newBuilder().build()) {
3331
context.eval("python", "print('Hello from GraalPy!')");
3432
}
3533
{%- endhighlight -%}

0 commit comments

Comments
 (0)