bug fix in toString()

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@509 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2006-12-13 20:53:37 +00:00
parent b42017bd37
commit 7ecacb4662
1 changed files with 2 additions and 2 deletions

View File

@ -508,14 +508,14 @@ public class BasicHeapGraph extends HeapGraph {
public String toString() {
StringBuffer result = new StringBuffer();
result.append("Nodes:\n");
for (int i = 0; i < getMaxNumber(); i++) {
for (int i = 0; i <= getMaxNumber(); i++) {
Object node = getNode(i);
if (node != null) {
result.append(i).append(" ").append(node).append("\n");
}
}
result.append("Edges:\n");
for (int i = 0; i < getMaxNumber(); i++) {
for (int i = 0; i <= getMaxNumber(); i++) {
Object node = getNode(i);
if (node != null) {
result.append(i).append(" -> ");