--- old/src/share/classes/javax/swing/text/html/OptionListModel.java 2014-06-10 11:51:41.000000000 -0700
+++ new/src/share/classes/javax/swing/text/html/OptionListModel.java 2014-06-10 11:51:41.000000000 -0700
@@ -40,7 +40,7 @@
* It also stores the initial state of the JList, to ensure an
* accurate reset, if the user requests a reset of the form.
*
- @author Sunita Mani
+ * @author Sunita Mani
*/
@SuppressWarnings("serial") // Superclass is not serializable across versions
class OptionListModel extends DefaultListModel implements ListSelectionModel, Serializable {
@@ -469,7 +469,8 @@
* and (b) define a clone
method
*/
public Object clone() throws CloneNotSupportedException {
- OptionListModel clone = (OptionListModel)super.clone();
+ @SuppressWarnings("unchecked")
+ OptionListModel clone = (OptionListModel)super.clone();
clone.value = (BitSet)value.clone();
clone.listenerList = new EventListenerList();
return clone;