[Fb-contrib-commit] SF.net SVN: fb-contrib: [620] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/de
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-08-20 00:15:59
|
Revision: 620 Author: dbrosius Date: 2006-08-19 17:15:45 -0700 (Sat, 19 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=620&view=rev Log Message: ----------- add equalsIgnoreCase to LSC Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LiteralStringComparison.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LiteralStringComparison.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LiteralStringComparison.java 2006-08-18 03:59:33 UTC (rev 619) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LiteralStringComparison.java 2006-08-20 00:15:45 UTC (rev 620) @@ -85,7 +85,9 @@ String calledMethodSig = getSigConstantOperand(); if (("equals".equals(calledMethodName) && "(Ljava/lang/Object;)Z".equals(calledMethodSig)) - || ("compareTo".equals(calledMethodName) && "(Ljava/lang/String;)I".equals(calledMethodSig))) { + || ("compareTo".equals(calledMethodName) && "(Ljava/lang/String;)I".equals(calledMethodSig)) + || ("equalsIgnoreCase".equals(calledMethodName) && "(Ljava/lang/Object;)Z".equals(calledMethodSig))) { + if (stack.getStackDepth() > 0) { OpcodeStack.Item itm = stack.getStackItem(0); Object constant = itm.getConstant(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |