Revision: 795
http://svn.sourceforge.net/fb-contrib/?rev=795&view=rev
Author: dbrosius
Date: 2007-01-28 12:49:56 -0800 (Sun, 28 Jan 2007)
Log Message:
-----------
GC fixes
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java 2007-01-28 20:43:32 UTC (rev 794)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java 2007-01-28 20:49:56 UTC (rev 795)
@@ -39,6 +39,7 @@
import edu.umd.cs.findbugs.OpcodeStack;
import edu.umd.cs.findbugs.SourceLineAnnotation;
import edu.umd.cs.findbugs.ba.ClassContext;
+import edu.umd.cs.findbugs.ba.XFactory;
import edu.umd.cs.findbugs.ba.XField;
/**
@@ -75,7 +76,7 @@
}
private BugReporter bugReporter;
private OpcodeStack stack;
- private Set<FieldAnnotation> fieldLabels;
+ private Set<XField> fieldLabels;
private Map<Integer, SourceLineAnnotation> localLabels;
/**
@@ -105,10 +106,10 @@
}
stack = new OpcodeStack();
- fieldLabels = new HashSet<FieldAnnotation>();
+ fieldLabels = new HashSet<XField>();
localLabels = new HashMap<Integer, SourceLineAnnotation>();
super.visitClassContext(classContext);
- for (FieldAnnotation fa : fieldLabels) {
+ for (XField fa : fieldLabels) {
bugReporter.reportBug(new BugInstance(this, "S508C_NO_SETLABELFOR", NORMAL_PRIORITY)
.addClass(this)
.addField(fa));
@@ -132,7 +133,8 @@
String fieldSig = obj.getSignature();
if ("Ljavax/swing/JLabel;".equals(fieldSig)) {
FieldAnnotation fa = FieldAnnotation.fromVisitedField(this);
- fieldLabels.add(fa);
+
+ fieldLabels.add(XFactory.createXField(fa));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|