Skip to content

Commit dd2e936

Browse files
committed
made GraalPyResources final
1 parent 7c20b30 commit dd2e936

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils/GraalPyResources.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@
145145
* @see VirtualFileSystem.Builder
146146
*/
147147
// TODO: link to user guide
148-
public class GraalPyResources {
148+
public final class GraalPyResources {
149+
150+
private GraalPyResources() {
151+
}
149152

150153
/**
151154
* Creates a GraalPy context preconfigured with a {@link VirtualFileSystem} and other GraalPy
@@ -362,7 +365,7 @@ private static Context.Builder createContextBuilder() {
362365
* <p>
363366
* <b>Example </b> creating a GraalPy context precofigured with an external resource directory
364367
* located next to a native image executable.
365-
*
368+
*
366369
* <pre>
367370
* Path resourcesDir = GraalPyResources.getNativeExecutablePath().getParent().resolve("python-resources");
368371
* try (Context context = GraalPyResources.contextBuilder(resourcesDir).build()) {
@@ -405,7 +408,7 @@ public static Path getNativeExecutablePath() {
405408
* </p>
406409
* <p>
407410
* <b>Example</b>
408-
*
411+
*
409412
* <pre>
410413
* Path resourcesDir = Path.of(System.getProperty("user.home"), ".cache", "my.java.python.app.resources");
411414
* FileSystem fs = GraalPyResources.createVirtualFileSystem();

0 commit comments

Comments
 (0)