Author: kkolinko
Date: Fri Sep 12 16:37:48 2014
New Revision: 1624588
URL: http://svn.apache.org/r1624588
Log:
Remove constant_pool_count field.
The field is never read, and its value is known from the length of
constant_pool array created in constructor.
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantPool.java
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantPool.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantPool.java?rev=1624588&r1=1624587&r2=1624588&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantPool.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantPool.java
Fri Sep 12 16:37:48 2014
@@ -35,8 +35,7 @@ import org.apache.tomcat.util.bcel.Const
*/
public class ConstantPool {
- private int constant_pool_count;
- private Constant[] constant_pool;
+ private final Constant[] constant_pool;
/**
@@ -47,7 +46,7 @@ public class ConstantPool {
* @throws ClassFormatException
*/
ConstantPool(DataInputStream file) throws IOException,
ClassFormatException {
- constant_pool_count = file.readUnsignedShort();
+ int constant_pool_count = file.readUnsignedShort();
constant_pool = new Constant[constant_pool_count];
/* constant_pool[0] is unused by the compiler and may be used freely
* by the implementation.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]