src/share/classes/java/awt/datatransfer/MimeTypeParameterList.java
Print this page
*** 294,311 ****
}
/**
* @return a clone of this object
*/
!
public Object clone() {
MimeTypeParameterList newObj = null;
try {
newObj = (MimeTypeParameterList)super.clone();
} catch (CloneNotSupportedException cannotHappen) {
}
! newObj.parameters = (Hashtable)parameters.clone();
return newObj;
}
private Hashtable<String, String> parameters;
--- 294,311 ----
}
/**
* @return a clone of this object
*/
! @SuppressWarnings("unchecked") // Cast from clone
public Object clone() {
MimeTypeParameterList newObj = null;
try {
newObj = (MimeTypeParameterList)super.clone();
} catch (CloneNotSupportedException cannotHappen) {
}
! newObj.parameters = (Hashtable<String, String>)parameters.clone();
return newObj;
}
private Hashtable<String, String> parameters;