[Nice-commit] Nice/src/gnu/bytecode Field.java,1.7,1.8
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-04-09 17:46:12
|
Update of /cvsroot/nice/Nice/src/gnu/bytecode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31658/src/gnu/bytecode Modified Files: Field.java Log Message: Only omit ConstantValue attribute for non-final fields. Index: Field.java =================================================================== RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/Field.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Field.java 8 Apr 2005 13:31:09 -0000 1.7 --- Field.java 9 Apr 2005 17:45:32 -0000 1.8 *************** *** 160,164 **** private CpoolEntry addIfNotDefault(ConstantPool cpool, int value) { ! if (value == 0) // 0 is the default value, no need to specify it. return null; --- 160,164 ---- private CpoolEntry addIfNotDefault(ConstantPool cpool, int value) { ! if (value == 0 && ! isFinal()) // 0 is the default value, no need to specify it. return null; |