CMSDK: Utilize a SparseArray instead of Map, avoid autoboxing.

Change-Id: I207c4d323968f3491b0635859a52402215cdc599
This commit is contained in:
Adnan Begovic 2015-06-08 16:39:58 -07:00
parent 757d564a12
commit 5024f16809

View File

@ -17,8 +17,7 @@
package cyanogenmod.os;
import android.os.SystemProperties;
import java.util.HashMap;
import android.util.SparseArray;
/**
* Information about the current CyanogenMod build, extracted from system properties.
@ -27,10 +26,10 @@ public class Build {
/** Value used for when a build property is unknown. */
public static final String UNKNOWN = "unknown";
private static final HashMap<Integer, String> sdkMap;
private static final SparseArray<String> sdkMap;
static
{
sdkMap = new HashMap<Integer, String>();
sdkMap = new SparseArray<String>();
sdkMap.put(CM_VERSION_CODES.APRICOT, "Apricot");
}