aboutsummaryrefslogtreecommitdiffstats
path: root/src/proguard/evaluation/Stack.java
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2012-02-27 18:34:24 -0800
committerYing Wang <wangying@google.com>2012-02-27 18:34:24 -0800
commit9f606f95f03a75961498803e24bee6799a7c0885 (patch)
treea45f4d74feda9b76277a0c9ced55ad15d82248a1 /src/proguard/evaluation/Stack.java
parentcfead78069f3dc32998dc118ee08cab3867acea2 (diff)
downloadandroid_external_proguard-jellybean.tar.gz
android_external_proguard-jellybean.tar.bz2
android_external_proguard-jellybean.zip
This reverts commit cfead78069f3dc32998dc118ee08cab3867acea2. Bug: 6079915
Diffstat (limited to 'src/proguard/evaluation/Stack.java')
-rw-r--r--src/proguard/evaluation/Stack.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/proguard/evaluation/Stack.java b/src/proguard/evaluation/Stack.java
index 46c1b40..2808e62 100644
--- a/src/proguard/evaluation/Stack.java
+++ b/src/proguard/evaluation/Stack.java
@@ -2,7 +2,7 @@
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
- * Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
+ * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
@@ -22,8 +22,6 @@ package proguard.evaluation;
import proguard.evaluation.value.*;
-import java.util.Arrays;
-
/**
* This class represents an operand stack that contains <code>Value</code>
* objects.
@@ -165,7 +163,10 @@ public class Stack
public void clear()
{
// Clear the stack contents.
- Arrays.fill(values, 0, currentSize, null);
+ for (int index = 0; index < currentSize; index++)
+ {
+ values[index] = null;
+ }
currentSize = 0;
}