Skip to content

Commit 824c293

Browse files
committed
change static interface methods to default methods
1 parent a7742ef commit 824c293

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/frame

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/frame/GlobalNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
import com.oracle.truffle.api.frame.VirtualFrame;
4848

4949
public interface GlobalNode {
50-
static boolean isInModule(VirtualFrame frame) {
50+
default boolean isInModule(VirtualFrame frame) {
5151
return PArguments.getGlobals(frame) instanceof PythonModule;
5252
}
5353

54-
static boolean isInDict(VirtualFrame frame) {
54+
default boolean isInDict(VirtualFrame frame) {
5555
Object globals = PArguments.getGlobals(frame);
5656
return globals instanceof PDict || globals instanceof PMappingproxy;
5757
}

0 commit comments

Comments
 (0)