Thread: [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. |
From: <dbr...@us...> - 2006-05-05 05:56:48
|
Revision: 519 Author: dbrosius Date: 2006-05-04 22:56:44 -0700 (Thu, 04 May 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=519&view=rev Log Message: ----------- copyright 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-05-05 05:56:04 UTC (rev 518) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java 2006-05-05 05:56:44 UTC (rev 519) @@ -1,3 +1,21 @@ +/* + * fb-contrib - Auxilliary detectors for Java programs + * Copyright (C) 2005-2006 Dave Brosius + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ package com.mebigfatguy.fbcontrib.detect; import java.util.HashMap; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2006-08-27 00:48:06
|
Revision: 624 Author: dbrosius Date: 2006-08-26 17:47:59 -0700 (Sat, 26 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=624&view=rev Log Message: ----------- fix some false positives 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-08-22 05:30:19 UTC (rev 623) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/Section508Compliance.java 2006-08-27 00:47:59 UTC (rev 624) @@ -195,7 +195,7 @@ OpcodeStack.Item item = stack.getStackItem(1); FieldAnnotation fa = item.getField(); if (fa != null) - fieldLabels.remove(fa.getFieldName()); + fieldLabels.remove(fa); else { int reg = item.getRegisterNumber(); if (reg >= 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |