[Fb-contrib-commit] SF.net SVN: fb-contrib:[1192] trunk/fb-contrib
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-05-09 20:59:26
|
Revision: 1192
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1192&view=rev
Author: dbrosius
Date: 2009-05-09 20:59:17 +0000 (Sat, 09 May 2009)
Log Message:
-----------
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousComparatorReturnValues.java
Removed Paths:
-------------
trunk/fb-contrib/samples/JVR_Sample.java
Deleted: trunk/fb-contrib/samples/JVR_Sample.java
===================================================================
--- trunk/fb-contrib/samples/JVR_Sample.java 2009-05-09 20:58:29 UTC (rev 1191)
+++ trunk/fb-contrib/samples/JVR_Sample.java 2009-05-09 20:59:17 UTC (rev 1192)
@@ -1,65 +0,0 @@
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.sql.Blob;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-
-
-
-public class JVR_Sample
-{
- public String getBlobAsString(ResultSet rs) throws SQLException
- {
- VendorBlob vb = (VendorBlob)rs.getBlob(1);
- return vb.convertBlobToString();
- }
-
- public String falsePositive(ResultSet rs) throws SQLException
- {
- Blob vb = rs.getBlob(1);
- return vb.getClass().getName();
- }
-}
-
-class VendorBlob implements Blob
-{
- public String convertBlobToString()
- {
- return "Booya";
- }
-
- public InputStream getBinaryStream() throws SQLException {
- return null;
- }
-
- public byte[] getBytes(long arg0, int arg1) throws SQLException {
- return null;
- }
-
- public long length() throws SQLException {
- return 0;
- }
-
- public long position(Blob arg0, long arg1) throws SQLException {
- return 0;
- }
-
- public long position(byte[] arg0, long arg1) throws SQLException {
- return 0;
- }
-
- public OutputStream setBinaryStream(long arg0) throws SQLException {
- return null;
- }
-
- public int setBytes(long arg0, byte[] arg1, int arg2, int arg3) throws SQLException {
- return 0;
- }
-
- public int setBytes(long arg0, byte[] arg1) throws SQLException {
- return 0;
- }
-
- public void truncate(long arg0) throws SQLException {
- }
-}
\ No newline at end of file
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousComparatorReturnValues.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousComparatorReturnValues.java 2009-05-09 20:58:29 UTC (rev 1191)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousComparatorReturnValues.java 2009-05-09 20:59:17 UTC (rev 1192)
@@ -49,7 +49,7 @@
}
private OpcodeStack stack;
- private BugReporter bugReporter;
+ private final BugReporter bugReporter;
private String[] methodInfo;
private boolean indeterminate;
private boolean seenNegative;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|