Skip to content

Commit 6a98c68

Browse files
committed
Make PMemoryView final
1 parent 604b6e4 commit 6a98c68

File tree

1 file changed

+2
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/memoryview

1 file changed

+2
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/memoryview/PMemoryView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
// TODO interop lib
5858
@ExportLibrary(PythonObjectLibrary.class)
59-
public class PMemoryView extends PythonBuiltinObject {
59+
public final class PMemoryView extends PythonBuiltinObject {
6060
public static final int MAX_DIM = 64;
6161

6262
public static final int FLAG_RELEASED = 0x001;
@@ -288,6 +288,7 @@ public void checkReleased(PythonBuiltinBaseNode node) {
288288
}
289289

290290
@ExportMessage
291+
@SuppressWarnings("static-method")
291292
boolean isBuffer() {
292293
return true;
293294
}

0 commit comments

Comments
 (0)