[Fb-contrib-commit] SF.net SVN: fb-contrib: [434] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/det
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-04-09 23:13:14
|
Revision: 434 Author: dbrosius Date: 2006-04-09 16:13:10 -0700 (Sun, 09 Apr 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=434&view=rev Log Message: ----------- allow writes to attributes backing fields in the constructor Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NonRecycleableTaglibs.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NonRecycleableTaglibs.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NonRecycleableTaglibs.java 2006-04-09 22:58:33 UTC (rev 433) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/NonRecycleableTaglibs.java 2006-04-09 23:13:10 UTC (rev 434) @@ -145,8 +145,10 @@ @Override public void visitCode(Code obj) { Method m = getMethod(); - String attName = m.getName() + ":" + m.getSignature(); - super.visitCode(obj); + if (!"<init>".equals(m.getName())) { + String attName = m.getName() + ":" + m.getSignature(); + super.visitCode(obj); + } } @Override @@ -160,6 +162,7 @@ } String fieldName = getNameConstantOperand(); String fieldSig = getSigConstantOperand(); + FieldAnnotation fa = new FieldAnnotation(getClassName(), fieldName, fieldSig, false); fa.setSourceLines(SourceLineAnnotation.fromVisitedInstruction(this)); fieldAnnotations.put(fieldName, fa); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |