Skip to content

Commit d8e179c

Browse files
committed
Fix typo in debugger
1 parent aa5f199 commit d8e179c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/src/processing/mode/java/Debugger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,13 +1124,13 @@ protected void printThis(ThreadReference t) {
11241124
} else {
11251125
StackFrame sf = t.frame(0);
11261126
ObjectReference thisObject = sf.thisObject();
1127-
if (this != null) {
1127+
if (thisObject != null) {
11281128
ReferenceType type = thisObject.referenceType();
11291129
System.out.println("fields in this (" + type.name() + "):");
11301130
for (Field f : type.visibleFields()) {
11311131
System.out.println(f.typeName() + " " + f.name() + " = " + thisObject.getValue(f));
11321132
}
1133-
} else { // TODO [this is not reachable - fry]
1133+
} else {
11341134
System.out.println("can't get this (in native or static method)");
11351135
}
11361136
}

0 commit comments

Comments
 (0)