[Fb-contrib-commit] SF.net SVN: fb-contrib: [501] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/det
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-04-25 17:19:24
|
Revision: 501 Author: dbrosius Date: 2006-04-25 10:19:19 -0700 (Tue, 25 Apr 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=501&view=rev Log Message: ----------- fix setSize check 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 2006-04-23 02:00:31 UTC (rev 500) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java 2006-04-25 17:19:19 UTC (rev 501) @@ -155,18 +155,16 @@ } } } - } else if ("java/awt/Component".equals(className)) { - if ("setSize".equals(methodName)) { - int argCount = Type.getArgumentTypes(getSigConstantOperand()).length; - if ((windowClass != null) && (stack.getStackDepth() > argCount)) { - OpcodeStack.Item item = stack.getStackItem(argCount); - JavaClass cls = item.getJavaClass(); - if (cls.instanceOf(windowClass)) { - bugReporter.reportBug(new BugInstance(this, "S508C_NO_SETSIZE", NORMAL_PRIORITY) - .addClass(this) - .addMethod(this) - .addSourceLine(this)); - } + } else if ("setSize".equals(methodName)) { + int argCount = Type.getArgumentTypes(getSigConstantOperand()).length; + if ((windowClass != null) && (stack.getStackDepth() > argCount)) { + OpcodeStack.Item item = stack.getStackItem(argCount); + JavaClass cls = item.getJavaClass(); + if (cls.instanceOf(windowClass)) { + bugReporter.reportBug(new BugInstance(this, "S508C_NO_SETSIZE", NORMAL_PRIORITY) + .addClass(this) + .addMethod(this) + .addSourceLine(this)); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |