Thread: [Fb-contrib-commit] SF.net SVN: fb-contrib: [601] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/de
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-08-10 04:25:51
|
Revision: 601 Author: dbrosius Date: 2006-08-09 21:25:46 -0700 (Wed, 09 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=601&view=rev Log Message: ----------- add more methods Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-10 04:21:25 UTC (rev 600) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-10 04:25:46 UTC (rev 601) @@ -32,6 +32,8 @@ characterMethods.put("java/lang/String:lastIndexOf:(Ljava/lang/String;)I", Integer14.valueOf(0)); characterMethods.put("java/lang/String:lastIndexOf:(Ljava/lang/String;I)I", Integer14.valueOf(1)); characterMethods.put("java/lang/String:startsWith:(Ljava/lang/String;)Z", Integer14.valueOf(0)); + characterMethods.put("java/io/PrintStream:print:(Ljava/lang/String;)V", Integer14.valueOf(0)); + characterMethods.put("java/io/PrintStream:println:(Ljava/lang/String;)V", Integer14.valueOf(0)); } private BugReporter bugReporter; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2006-08-10 04:28:46
|
Revision: 602 Author: dbrosius Date: 2006-08-09 21:28:37 -0700 (Wed, 09 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=602&view=rev Log Message: ----------- more char methods Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-10 04:25:46 UTC (rev 601) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-10 04:28:37 UTC (rev 602) @@ -34,6 +34,7 @@ characterMethods.put("java/lang/String:startsWith:(Ljava/lang/String;)Z", Integer14.valueOf(0)); characterMethods.put("java/io/PrintStream:print:(Ljava/lang/String;)V", Integer14.valueOf(0)); characterMethods.put("java/io/PrintStream:println:(Ljava/lang/String;)V", Integer14.valueOf(0)); + characterMethods.put("java/io/StringWriter:write:(Ljava/lang/String;)V", Integer14.valueOf(0)); } private BugReporter bugReporter; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2006-08-12 00:45:31
|
Revision: 606 Author: dbrosius Date: 2006-08-11 17:45:12 -0700 (Fri, 11 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=606&view=rev Log Message: ----------- don't do startsWith (for now) Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-10 19:49:23 UTC (rev 605) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-12 00:45:12 UTC (rev 606) @@ -31,7 +31,7 @@ characterMethods.put("java/lang/String:indexOf:(Ljava/lang/String;I)I", Integer14.valueOf(1)); characterMethods.put("java/lang/String:lastIndexOf:(Ljava/lang/String;)I", Integer14.valueOf(0)); characterMethods.put("java/lang/String:lastIndexOf:(Ljava/lang/String;I)I", Integer14.valueOf(1)); - characterMethods.put("java/lang/String:startsWith:(Ljava/lang/String;)Z", Integer14.valueOf(0)); + //characterMethods.put("java/lang/String:startsWith:(Ljava/lang/String;)Z", Integer14.valueOf(0)); characterMethods.put("java/io/PrintStream:print:(Ljava/lang/String;)V", Integer14.valueOf(0)); characterMethods.put("java/io/PrintStream:println:(Ljava/lang/String;)V", Integer14.valueOf(0)); characterMethods.put("java/io/StringWriter:write:(Ljava/lang/String;)V", Integer14.valueOf(0)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2006-08-12 00:47:53
|
Revision: 607 Author: dbrosius Date: 2006-08-11 17:47:46 -0700 (Fri, 11 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=607&view=rev Log Message: ----------- add StringBuffer.append dynamically if class is 1.5 or better Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-12 00:45:12 UTC (rev 606) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-12 00:47:46 UTC (rev 607) @@ -58,9 +58,13 @@ public void visitClassContext(final ClassContext context) { try { stack = new OpcodeStack(); + if (context.getJavaClass().getMajor() >= Constants.MAJOR_1_5) { + characterMethods.put("java/lang/StringBuffer:append:(Ljava/lang/String;)Ljava/lang/StringBuffer;", Integer14.valueOf(0)); + } super.visitClassContext(context); } finally { stack = null; + characterMethods.remove("java/lang/StringBuffer:append:(Ljava/lang/String;)Ljava/lang/StringBuffer;"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2006-08-12 13:38:52
|
Revision: 611 Author: dbrosius Date: 2006-08-12 06:38:45 -0700 (Sat, 12 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=611&view=rev Log Message: ----------- add copyright Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-12 03:26:13 UTC (rev 610) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseCharacterParameterizedMethod.java 2006-08-12 13:38:45 UTC (rev 611) @@ -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.BitSet; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |