From 9015228434b2c69ef8aff6293a61910d56026eaa Mon Sep 17 00:00:00 2001 From: lancea Date: Mon, 4 Oct 2010 13:04:09 -0400 Subject: [PATCH] 6989139: Address JDBC Findbugs where Number type Constructor are used Reviewed-by: ohair --- .../com/sun/rowset/CachedRowSetImpl.java | 60 ++++++------- .../com/sun/rowset/FilteredRowSetImpl.java | 12 +-- .../com/sun/rowset/JdbcRowSetImpl.java | 20 ++--- .../com/sun/rowset/JoinRowSetImpl.java | 2 +- .../rowset/internal/CachedRowSetWriter.java | 20 ++--- .../rowset/internal/WebRowSetXmlWriter.java | 4 +- .../internal/XmlReaderContentHandler.java | 10 +-- .../classes/javax/sql/rowset/BaseRowSet.java | 84 +++++++++---------- .../sql/rowset/serial/SQLOutputImpl.java | 12 +-- .../javax/sql/rowset/serial/SerialRef.java | 2 +- 10 files changed, 113 insertions(+), 113 deletions(-) diff --git a/src/share/classes/com/sun/rowset/CachedRowSetImpl.java b/src/share/classes/com/sun/rowset/CachedRowSetImpl.java index 414476590..cce299720 100644 --- a/src/share/classes/com/sun/rowset/CachedRowSetImpl.java +++ b/src/share/classes/com/sun/rowset/CachedRowSetImpl.java @@ -525,7 +525,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern iMatchColumns = new Vector(10); for(int i = 0; i < 10 ; i++) { - iMatchColumns.add(i,new Integer(-1)); + iMatchColumns.add(i,Integer.valueOf(-1)); } strMatchColumns = new Vector(10); @@ -1299,7 +1299,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern tMap = new TreeMap(); for (int i = 0; i