diff options
author | Ian Rogers <irogers@google.com> | 2012-03-20 10:51:03 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-08-01 12:38:52 -0700 |
commit | 63ac769acae3e1fa23aed3a6059325a9b9d91352 (patch) | |
tree | 9e2bc9dc690cd760fda7b56422439c4248c673b3 /dalvik | |
parent | ab9b18ceb8bd7adfbba8316ab2a3d33ff0300e70 (diff) | |
download | libcore-63ac769acae3e1fa23aed3a6059325a9b9d91352.zip libcore-63ac769acae3e1fa23aed3a6059325a9b9d91352.tar.gz libcore-63ac769acae3e1fa23aed3a6059325a9b9d91352.tar.bz2 |
Use float comparison for setTargetHeapUtilization constants.
(cherry-pick of f655188036ceab8968a510ae67455a27917546cf.)
Change-Id: I587ad497ee9ac38f4052cdfdd861e8b24dd80712
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/VMRuntime.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dalvik/src/main/java/dalvik/system/VMRuntime.java b/dalvik/src/main/java/dalvik/system/VMRuntime.java index c37290d..71098be 100644 --- a/dalvik/src/main/java/dalvik/system/VMRuntime.java +++ b/dalvik/src/main/java/dalvik/system/VMRuntime.java @@ -91,7 +91,7 @@ public final class VMRuntime { * @throws IllegalArgumentException if newTarget is <= 0.0 or >= 1.0 */ public float setTargetHeapUtilization(float newTarget) { - if (newTarget <= 0.0 || newTarget >= 1.0) { + if (newTarget <= 0.0f || newTarget >= 1.0f) { throw new IllegalArgumentException(newTarget + " out of range (0,1)"); } |