Skip to content

Commit d47313e

Browse files
committed
Use equals test for method comparisons.
1 parent 9dba331 commit d47313e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ private boolean isBadLeaf(FrameNode node, NativeImageDebugLocationInfo callerLoc
14291429
if (callerLocation == null) {
14301430
BytecodePosition pos = node.frame;
14311431
BytecodePosition callerPos = pos.getCaller();
1432-
if (callerPos != null && callerPos.getMethod() != pos.getMethod()) {
1432+
if (callerPos != null && !callerPos.getMethod().equals(pos.getMethod())) {
14331433
if (callerPos.getCaller() == null) {
14341434
return true;
14351435
}

0 commit comments

Comments
 (0)