aboutsummaryrefslogtreecommitdiffstats
path: root/src/proguard/obfuscate/AttributeShrinker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/proguard/obfuscate/AttributeShrinker.java')
-rw-r--r--src/proguard/obfuscate/AttributeShrinker.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/proguard/obfuscate/AttributeShrinker.java b/src/proguard/obfuscate/AttributeShrinker.java
index ee9bc4b..a8bc36b 100644
--- a/src/proguard/obfuscate/AttributeShrinker.java
+++ b/src/proguard/obfuscate/AttributeShrinker.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
@@ -26,8 +26,6 @@ import proguard.classfile.attribute.visitor.AttributeVisitor;
import proguard.classfile.util.SimplifiedVisitor;
import proguard.classfile.visitor.*;
-import java.util.Arrays;
-
/**
* This ClassVisitor removes attributes that are not marked as being used or
* required.
@@ -113,7 +111,10 @@ implements ClassVisitor,
}
// Clear the remaining array elements.
- Arrays.fill(array, counter, length, null);
+ for (int index = counter; index < length; index++)
+ {
+ array[index] = null;
+ }
return counter;
}