Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31674/src/com/mebigfatguy/fbcontrib/detect
Modified Files:
SloppyClassReflection.java
Log Message:
don't use deprecated apis, they are that way for a reason.
Index: SloppyClassReflection.java
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SloppyClassReflection.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- SloppyClassReflection.java 1 Mar 2006 05:09:01 -0000 1.4
+++ SloppyClassReflection.java 12 Mar 2006 02:55:34 -0000 1.5
@@ -101,11 +101,14 @@
addType(resultType);
LocalVariableTable lvt = obj.getLocalVariableTable();
if (lvt != null) {
- for (int l = 0; l < lvt.getLength(); l++) {
- LocalVariable lv = lvt.getLocalVariable(l);
- if (lv != null) {
- Type t = Type.getType(lv.getSignature());
- addType(t);
+ LocalVariable[] lvs = lvt.getLocalVariableTable();
+ if (lvs != null) {
+ for (int l = 0; l < lvs.length; l++) {
+ LocalVariable lv = lvs[l];
+ if (lv != null) {
+ Type t = Type.getType(lv.getSignature());
+ addType(t);
+ }
}
}
}
|