diff options
Diffstat (limited to 'src/proguard/obfuscate/ParameterNameMarker.java')
-rw-r--r-- | src/proguard/obfuscate/ParameterNameMarker.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/proguard/obfuscate/ParameterNameMarker.java b/src/proguard/obfuscate/ParameterNameMarker.java index 22af125..fbe8a81 100644 --- a/src/proguard/obfuscate/ParameterNameMarker.java +++ b/src/proguard/obfuscate/ParameterNameMarker.java @@ -2,7 +2,7 @@ * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * - * Copyright (c) 2002-2013 Eric Lafortune (eric@graphics.cornell.edu) + * Copyright (c) 2002-2014 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 @@ -23,7 +23,7 @@ package proguard.obfuscate; import proguard.classfile.*; import proguard.classfile.attribute.*; import proguard.classfile.attribute.visitor.AttributeVisitor; -import proguard.classfile.util.*; +import proguard.classfile.util.SimplifiedVisitor; /** * This AttributeVisitor trims and marks all local variable (type) table @@ -60,9 +60,9 @@ implements AttributeVisitor if (!AttributeUsageMarker.isUsed(localVariableTableAttribute) && hasParameters(clazz, method)) { - // Shift the entries that start at offset 0 to the front. + // Shift the entries that start at offset 0 to the front. int newIndex = 0; - + for (int index = 0; index < localVariableTableAttribute.u2localVariableTableLength; index++) { LocalVariableInfo localVariableInfo = @@ -92,9 +92,9 @@ implements AttributeVisitor if (!AttributeUsageMarker.isUsed(localVariableTypeTableAttribute) && hasParameters(clazz, method)) { - // Shift the entries that start at offset 0 to the front. + // Shift the entries that start at offset 0 to the front. int newIndex = 0; - + for (int index = 0; index < localVariableTypeTableAttribute.u2localVariableTypeTableLength; index++) { LocalVariableTypeInfo localVariableTypeInfo = @@ -109,7 +109,7 @@ implements AttributeVisitor // Trim the table. localVariableTypeTableAttribute.u2localVariableTypeTableLength = newIndex; - + // Mark the table if there are any entries. if (newIndex > 0) { @@ -123,6 +123,6 @@ implements AttributeVisitor private boolean hasParameters(Clazz clazz, Method method) { - return method.getDescriptor(clazz).charAt(1) != ClassConstants.INTERNAL_METHOD_ARGUMENTS_CLOSE; + return method.getDescriptor(clazz).charAt(1) != ClassConstants.METHOD_ARGUMENTS_CLOSE; } }
\ No newline at end of file |