Author: sebb
Date: Fri Sep 19 16:18:02 2014
New Revision: 1626260
URL: http://svn.apache.org/r1626260
Log:
Immutable private field might as well be final
Modified:
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassElementValue.java
Modified:
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassElementValue.java
URL:
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassElementValue.java?rev=1626260&r1=1626259&r2=1626260&view=diff
==============================================================================
---
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassElementValue.java
(original)
+++
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ClassElementValue.java
Fri Sep 19 16:18:02 2014
@@ -26,7 +26,7 @@ public class ClassElementValue extends E
// For primitive types and string type, this points to the value entry in
// the cpool
// For 'class' this points to the class entry in the cpool
- private int idx;
+ private final int idx;
public ClassElementValue(int type, int idx, ConstantPool cpool)
{