| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent aa5f199 commit d8e179c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1124,13 +1124,13 @@ protected void printThis(ThreadReference t) { | |||
| 1124 | 1124 | } else { | |
| 1125 | 1125 | StackFrame sf = t.frame(0); | |
| 1126 | 1126 | ObjectReference thisObject = sf.thisObject(); | |
| 1127 | - if (this != null) { | ||
| 1127 | + if (thisObject != null) { | ||
| 1128 | 1128 | ReferenceType type = thisObject.referenceType(); | |
| 1129 | 1129 | System.out.println("fields in this (" + type.name() + "):"); | |
| 1130 | 1130 | for (Field f : type.visibleFields()) { | |
| 1131 | 1131 | System.out.println(f.typeName() + " " + f.name() + " = " + thisObject.getValue(f)); | |
| 1132 | 1132 | } | |
| 1133 | - } else { // TODO [this is not reachable - fry] | ||
| 1133 | + } else { | ||
| 1134 | 1134 | System.out.println("can't get this (in native or static method)"); | |
| 1135 | 1135 | } | |
| 1136 | 1136 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments