Mercurial > hg > openjdk > jdk8 > jdk
changeset 8778:59ff7957c26f
8028149: Clean-up javac -Xlint warnings in com.sun.rowset and com.sun.rowset.internal
Reviewed-by: darcy
author | lancea |
---|---|
date | Mon, 11 Nov 2013 14:22:22 -0500 |
parents | 0e47462f03a0 |
children | 0cacac7f5c37 |
files | src/share/classes/com/sun/rowset/CachedRowSetImpl.java src/share/classes/com/sun/rowset/internal/BaseRow.java |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/com/sun/rowset/CachedRowSetImpl.java Mon Nov 11 16:06:16 2013 +0000 +++ b/src/share/classes/com/sun/rowset/CachedRowSetImpl.java Mon Nov 11 14:22:22 2013 -0500 @@ -541,7 +541,7 @@ if (rowSetWriter != null) { Class<?> c = rowSetWriter.getClass(); if (c != null) { - Class[] theInterfaces = c.getInterfaces(); + Class<?>[] theInterfaces = c.getInterfaces(); for (int i = 0; i < theInterfaces.length; i++) { if ((theInterfaces[i].getName()).indexOf("TransactionalWriter") > 0) { tXWriter = true;
--- a/src/share/classes/com/sun/rowset/internal/BaseRow.java Mon Nov 11 16:06:16 2013 +0000 +++ b/src/share/classes/com/sun/rowset/internal/BaseRow.java Mon Nov 11 14:22:22 2013 -0500 @@ -52,6 +52,11 @@ public abstract class BaseRow implements Serializable, Cloneable { /** + * Specify the serialVersionUID + */ +private static final long serialVersionUID = 4152013523511412238L; + +/** * The array containing the original values for this <code>BaseRow</code> * object. * @serial @@ -77,7 +82,7 @@ * @param idx the index of the element to return * @return the <code>Object</code> value at the given index into this * row's array of original values - * @throws <code>SQLException</code> if there is an error + * @throws SQLException if there is an error */ public abstract Object getColumnObject(int idx) throws SQLException; @@ -90,7 +95,7 @@ * @param idx the index of the element to be set * @param obj the <code>Object</code> to which the element at index * <code>idx</code> to be set - * @throws <code>SQLException</code> if there is an error + * @throws SQLException if there is an error */ public abstract void setColumnObject(int idx, Object obj) throws SQLException; }