diff options
Diffstat (limited to 'src/proguard/evaluation/Stack.java')
-rw-r--r-- | src/proguard/evaluation/Stack.java | 9 |
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; } |