src/share/classes/com/sun/rowset/internal/CachedRowSetWriter.java

Print this page

        

@@ -181,11 +181,11 @@
     private CachedRowSetImpl crsResolve;
 
 /**
  * This <code>ArrayList<code> will hold the values of SyncResolver.*
  */
-    private ArrayList status;
+    private ArrayList<Integer> status;
 
 /**
  * This will check whether the same field value has changed both
  * in database and CachedRowSet.
  */

@@ -303,11 +303,11 @@
         RowSetMetaDataImpl rsmdWrite = (RowSetMetaDataImpl)crs.getMetaData();
         RowSetMetaDataImpl rsmdResolv = new RowSetMetaDataImpl();
 
         iColCount = rsmdWrite.getColumnCount();
         int sz= crs.size()+1;
-        status = new ArrayList(sz);
+        status = new ArrayList<Integer>(sz);
 
         status.add(0,null);
         rsmdResolv.setColumnCount(iColCount);
 
         for(int i =1; i <= iColCount; i++) {

@@ -538,11 +538,11 @@
                 // pstmt.close();
                 rs.first();
 
                 // how many fields need to be updated
                 int colsNotChanged = 0;
-                Vector cols = new Vector();
+                Vector<Integer> cols = new Vector<>();
                 String updateExec = updateCmd;
                 Object orig;
                 Object curr;
                 Object rsval;
                 boolean boolNull = true;

@@ -564,11 +564,11 @@
                  * the following block creates equivalent objects
                  * that would have been created if this rs is populated
                  * into a CachedRowSet so that comparison of the column values
                  * from the ResultSet and CachedRowSet are possible
                  */
-                Map map = (crs.getTypeMap() == null)?con.getTypeMap():crs.getTypeMap();
+                Map<String, Class<?>> map = (crs.getTypeMap() == null)?con.getTypeMap():crs.getTypeMap();
                 if (rsval instanceof Struct) {
 
                     Struct s = (Struct)rsval;
 
                     // look up the class in the map