aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/libs/ddmlib/src/com/android
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-09-17 16:19:13 -0700
committerSiva Velusamy <vsiva@google.com>2011-09-20 11:37:46 -0700
commitb5ddc9b1aae26ca194bf540717dd74470111e290 (patch)
tree0df763364e2e75b7efb8926975b89390a29e57ac /ddms/libs/ddmlib/src/com/android
parent89200c1373f2984521d87947fd946ef931f85efa (diff)
downloadsdk-b5ddc9b1aae26ca194bf540717dd74470111e290.zip
sdk-b5ddc9b1aae26ca194bf540717dd74470111e290.tar.gz
sdk-b5ddc9b1aae26ca194bf540717dd74470111e290.tar.bz2
Use foreach instead of iterator
Change-Id: I06c3f52313ae06ff2b51cbe6b302409bd4efca5b
Diffstat (limited to 'ddms/libs/ddmlib/src/com/android')
-rw-r--r--ddms/libs/ddmlib/src/com/android/ddmlib/ClientData.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/ClientData.java b/ddms/libs/ddmlib/src/com/android/ddmlib/ClientData.java
index 9b96f64..d1156a4 100644
--- a/ddms/libs/ddmlib/src/com/android/ddmlib/ClientData.java
+++ b/ddms/libs/ddmlib/src/com/android/ddmlib/ClientData.java
@@ -597,12 +597,10 @@ public class ClientData {
}
/**
- * Returns an {@link Iterator} on {@link NativeLibraryMapInfo} objects.
- * <p/>
- * The caller must synchronize on the {@link ClientData} object while iterating.
+ * Returns the list of native libraries mapped in memory for this client.
*/
- public synchronized Iterator<NativeLibraryMapInfo> getNativeLibraryMapInfo() {
- return mNativeLibMapInfo.iterator();
+ public synchronized List<NativeLibraryMapInfo> getMappedNativeLibraries() {
+ return Collections.unmodifiableList(mNativeLibMapInfo);
}
synchronized void setAllocationStatus(AllocationTrackingStatus status) {