Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26880/src/com/mebigfatguy/fbcontrib/detect
Modified Files:
LiteralStringComparison.java
Log Message:
javadoc
Index: LiteralStringComparison.java
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LiteralStringComparison.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- LiteralStringComparison.java 5 Dec 2005 05:21:15 -0000 1.5
+++ LiteralStringComparison.java 6 Dec 2005 06:57:22 -0000 1.6
@@ -49,12 +49,22 @@
return super.clone();
}
+ /**
+ * overrides the visitor to reset the opcode stack
+ *
+ * @param obj the code object for the currently parsed method
+ */
@Override
public void visitCode(final Code obj) {
stack.resetForMethodEntry(this);
super.visitCode(obj);
}
+ /**
+ * looks for strings comparisons where the stack object is a literal
+ *
+ * @param seen the currently parsed opcode
+ */
@Override
public void sawOpcode(final int seen) {
try {
|