[Fb-contrib-commit] SF.net SVN: fb-contrib:[1208] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2009-05-11 16:49:19
|
Revision: 1208 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1208&view=rev Author: dbrosius Date: 2009-05-11 16:49:10 +0000 (Mon, 11 May 2009) Log Message: ----------- add GETSTATIC Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StutteredMethodArguments.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StutteredMethodArguments.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StutteredMethodArguments.java 2009-05-10 23:38:50 UTC (rev 1207) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StutteredMethodArguments.java 2009-05-11 16:49:10 UTC (rev 1208) @@ -112,9 +112,13 @@ String packageName; int slashPos = clsName.lastIndexOf('/'); if (slashPos >= 0) + { packageName = clsName.substring(0, slashPos); + } else + { packageName = ""; + } if (SignatureUtils.similarPackages(processedPackageName, packageName, 2)) { String methodName = getNameConstantOperand(); @@ -137,11 +141,14 @@ break; case GETFIELD: + case GETSTATIC: if (stack.getStackDepth() > 0) { OpcodeStack.Item item = stack.getStackItem(0); int reg = item.getRegisterNumber(); if (reg >= 0) + { fieldSource = String.valueOf(reg); + } else { XField f = item.getXField(); if (f != null) { @@ -190,7 +197,9 @@ if (f != null) { String fieldSource = (String)item.getUserValue(); if (fieldSource == null) + { fieldSource = ""; + } arg = fieldSource + '|' + f.getClassName() + ':' + f.getName(); } } @@ -198,7 +207,9 @@ if (arg != null) { arg += "--" + parms[i].getSignature(); if (args.contains(arg)) + { return true; + } args.add(arg); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |