diff options
author | Brian Carlstrom <bdc@google.com> | 2012-08-01 12:40:25 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-08-01 12:40:26 -0700 |
commit | 8588cab1581a385445714570c55eced54bdabd97 (patch) | |
tree | 9e2bc9dc690cd760fda7b56422439c4248c673b3 /dalvik | |
parent | ab9b18ceb8bd7adfbba8316ab2a3d33ff0300e70 (diff) | |
parent | 63ac769acae3e1fa23aed3a6059325a9b9d91352 (diff) | |
download | libcore-8588cab1581a385445714570c55eced54bdabd97.zip libcore-8588cab1581a385445714570c55eced54bdabd97.tar.gz libcore-8588cab1581a385445714570c55eced54bdabd97.tar.bz2 |
Merge "Use float comparison for setTargetHeapUtilization constants."
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)"); } |