aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/libs
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-10-09 16:07:53 -0700
committerSiva Velusamy <vsiva@google.com>2011-10-09 16:07:53 -0700
commit1b27ad658ca34c0aff64eab9245847258a06b83b (patch)
tree66d2161a13af19b8d324950d6124fa96d80926f6 /ddms/libs
parent6cfc8707ed775499225dcc5007dd988be772a69b (diff)
downloadsdk-1b27ad658ca34c0aff64eab9245847258a06b83b.zip
sdk-1b27ad658ca34c0aff64eab9245847258a06b83b.tar.gz
sdk-1b27ad658ca34c0aff64eab9245847258a06b83b.tar.bz2
Add a whitespace character when scanning across tokens.
Change-Id: I6473c1e987c37fb69f808c26e2a7e0f451ab1d34
Diffstat (limited to 'ddms/libs')
-rw-r--r--ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/NativeHeapDataImporter.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/NativeHeapDataImporter.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/NativeHeapDataImporter.java
index 9c53b18..e5f4fdb 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/NativeHeapDataImporter.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/NativeHeapDataImporter.java
@@ -190,9 +190,14 @@ public class NativeHeapDataImporter implements IRunnableWithProgress {
}
sb.append(token);
+
+ // We do not know the exact delimiter that was skipped over, but we know
+ // that there was atleast 1 whitespace. Add a single whitespace character
+ // to account for this.
+ sb.append(' ');
}
- return sb.toString();
+ return sb.toString().trim();
}
private boolean isUnresolved(String method, long address) {