diff options
author | Mike Lockwood <lockwood@android.com> | 2009-04-28 16:56:30 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-04-28 21:38:06 -0400 |
commit | 662ea09a71ab241774456f7bd4791a3532904da3 (patch) | |
tree | 0ec2f476da8848d85cd4b03202f9369098b0c79e /location | |
parent | 5f2788bc9d947f7793aaea06f7e21d6b74c98826 (diff) | |
download | frameworks_base-662ea09a71ab241774456f7bd4791a3532904da3.zip frameworks_base-662ea09a71ab241774456f7bd4791a3532904da3.tar.gz frameworks_base-662ea09a71ab241774456f7bd4791a3532904da3.tar.bz2 |
location: Optimize use of mProviders ArrayList.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'location')
-rw-r--r-- | location/java/com/android/internal/location/LocationProviderImpl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/location/java/com/android/internal/location/LocationProviderImpl.java b/location/java/com/android/internal/location/LocationProviderImpl.java index 5e9c074..fc830f5 100644 --- a/location/java/com/android/internal/location/LocationProviderImpl.java +++ b/location/java/com/android/internal/location/LocationProviderImpl.java @@ -25,7 +25,6 @@ import android.util.Log; import java.util.ArrayList; import java.util.HashMap; -import java.util.List; /** * An abstract superclass for location provider implementations. @@ -62,8 +61,8 @@ public abstract class LocationProviderImpl extends LocationProvider { sProvidersByName.remove(provider.getName()); } - public static List<LocationProviderImpl> getProviders() { - return new ArrayList<LocationProviderImpl>(sProviders); + public static ArrayList<LocationProviderImpl> getProviders() { + return sProviders; } public static LocationProviderImpl getProvider(String name) { |