diff options
author | Siva Velusamy <vsiva@google.com> | 2011-09-17 16:19:13 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2011-09-20 11:37:46 -0700 |
commit | b5ddc9b1aae26ca194bf540717dd74470111e290 (patch) | |
tree | 0df763364e2e75b7efb8926975b89390a29e57ac /ddms/libs/ddmlib/src/com/android | |
parent | 89200c1373f2984521d87947fd946ef931f85efa (diff) | |
download | sdk-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.java | 8 |
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) { |