src/share/classes/javax/sql/rowset/serial/SerialStruct.java

Print this page

        

@@ -137,11 +137,11 @@
         try {
 
         //set the type name
         SQLTypeName = in.getSQLTypeName();
 
-        Vector tmp = new Vector();
+        Vector<Object> tmp = new Vector<>();
         in.writeSQL(new SQLOutputImpl(tmp, map));
         attribs = tmp.toArray();
 
         } catch (SQLException e) {
             throw new SerialException(e.getMessage());

@@ -218,11 +218,11 @@
      *        giving the fully qualified name of a UDT and 2) the
      *        <code>Class</code> object for the <code>SQLData</code> implementation
      *        that defines how the UDT is to be mapped
      * @throws SerialException if an error occurs
      */
-    private void mapToSerial(Map map) throws SerialException {
+    private void mapToSerial(Map<String,Class<?>> map) throws SerialException {
 
         try {
 
         for (int i = 0; i < attribs.length; i++) {
             if (attribs[i] instanceof Struct) {