[Fb-contrib-commit] SF.net SVN: fb-contrib: [956] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/d
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-11-07 07:02:37
|
Revision: 956 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=956&view=rev Author: dbrosius Date: 2007-11-06 23:02:42 -0800 (Tue, 06 Nov 2007) Log Message: ----------- get rid of java5 dependencies Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ExceptionSoftening.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java 2007-11-07 07:01:26 UTC (rev 955) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java 2007-11-07 07:02:42 UTC (rev 956) @@ -163,7 +163,7 @@ } } else if ((seen == ASTORE) || ((seen >= ASTORE_0) && (seen <= ASTORE_3))) { int reg = RegisterUtils.getAStoreReg(this, seen); - possibleParmRegs.remove(Integer.valueOf(reg)); + possibleParmRegs.remove(Integer14.valueOf(reg)); } else if ((seen == INVOKEVIRTUAL) || (seen == INVOKEINTERFACE)) { String calledSig = getSigConstantOperand(); String calledRet = Type.getReturnType(calledSig).getSignature(); Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ExceptionSoftening.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ExceptionSoftening.java 2007-11-07 07:01:26 UTC (rev 955) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ExceptionSoftening.java 2007-11-07 07:02:42 UTC (rev 956) @@ -39,6 +39,7 @@ import org.apache.bcel.classfile.JavaClass; import org.apache.bcel.classfile.Method; +import com.mebigfatguy.fbcontrib.utils.Integer14; import com.mebigfatguy.fbcontrib.utils.SignatureUtils; import edu.umd.cs.findbugs.BugInstance; @@ -127,7 +128,7 @@ try { stack.mergeJumps(this); int pc = getPC(); - CodeException ex = catchHandlerPCs.get(Integer.valueOf(pc)); + CodeException ex = catchHandlerPCs.get(Integer14.valueOf(pc)); if (ex != null) { int endPC; if ((seen == GOTO) || (seen == GOTO_W)) @@ -235,7 +236,7 @@ LinkedHashMap<Integer, CodeException> handlers = new LinkedHashMap<Integer, CodeException>(); for (CodeException ex : filteredEx) { - handlers.put(Integer.valueOf(ex.getEndPC()), ex); + handlers.put(Integer14.valueOf(ex.getEndPC()), ex); } return handlers; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |