[Fb-contrib-commit] SF.net SVN: fb-contrib:[1508] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-24 00:42:58
|
Revision: 1508
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1508&view=rev
Author: dbrosius
Date: 2010-01-24 00:34:52 +0000 (Sun, 24 Jan 2010)
Log Message:
-----------
javadoc
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ImproperPropertiesUse.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ImproperPropertiesUse.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ImproperPropertiesUse.java 2010-01-24 00:31:40 UTC (rev 1507)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ImproperPropertiesUse.java 2010-01-24 00:34:52 UTC (rev 1508)
@@ -46,6 +46,11 @@
this.bugReporter = bugReporter;
}
+ /**
+ * implements the listener to set up and tear down the opcode stack
+ *
+ * @param classContext the context object of the currently parsed class
+ */
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
@@ -55,11 +60,22 @@
}
}
+ /**
+ * implements the visitor to reset the opcode stack
+ *
+ * @param obj the context object for the currently parsed code block
+ */
public void visitCode(Code obj) {
stack.resetForMethodEntry(this);
super.visitCode(obj);
}
+ /**
+ * implements the visitor to look for calls to java.utils.Properties.put, where the value
+ * is a non String. Reports both cases, where if it is a string, at a lower lever.
+ *
+ * @param seen the currently parsed op code
+ */
public void sawOpcode(int seen) {
try {
if (seen == INVOKEVIRTUAL) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|