Skip to content

Commit

Permalink
Display Class objects more helpfully.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored and lkishalmi committed Sep 1, 2019
1 parent 9679421 commit 1d6c743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions harness/o.n.insane/src/org/netbeans/insane/live/Path.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public static String describeObject(Object obj) {
// at org.netbeans.junit.NbTestCase.assertGC(NbTestCase.java:1171)
// at org.netbeans.modules.projectapi.AuxiliaryConfigBasedPreferencesProviderTest.testReclaimable(AuxiliaryConfigBasedPreferencesProviderTest.java:256)
return "null";
} else if (obj instanceof Class) {
return obj.toString() + "@" + Integer.toHexString(System.identityHashCode(obj));
}
return obj.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(obj));
}
Expand Down

0 comments on commit 1d6c743

Please sign in to comment.