8203263: Remove unnecessary throws clauses from serialization-related methods

Reviewed-by: prr
This commit is contained in:
Joe Darcy 2018-07-18 16:13:21 -07:00
parent 1f273bde76
commit a5e27072fe
5 changed files with 5 additions and 8 deletions
src/java.desktop/share/classes/java

@ -1895,8 +1895,7 @@ public class Font implements java.io.Serializable
* @see #readObject(java.io.ObjectInputStream)
*/
private void writeObject(java.io.ObjectOutputStream s)
throws java.lang.ClassNotFoundException,
java.io.IOException
throws java.io.IOException
{
if (values != null) {
synchronized(values) {

@ -432,8 +432,7 @@ public class MenuBar extends MenuComponent implements MenuContainer, Accessible
* @see #readObject(java.io.ObjectInputStream)
*/
private void writeObject(java.io.ObjectOutputStream s)
throws java.lang.ClassNotFoundException,
java.io.IOException
throws java.io.IOException
{
s.defaultWriteObject();
}

@ -100,8 +100,7 @@ public final class TransformAttribute implements Serializable {
public static final TransformAttribute IDENTITY = new TransformAttribute(null);
private void writeObject(java.io.ObjectOutputStream s)
throws java.lang.ClassNotFoundException,
java.io.IOException
throws java.io.IOException
{
// sigh -- 1.3 expects transform is never null, so we need to always write one out
if (this.transform == null) {

@ -3943,7 +3943,7 @@ public class AffineTransform implements Cloneable, java.io.Serializable {
private static final long serialVersionUID = 1330973210523860834L;
private void writeObject(java.io.ObjectOutputStream s)
throws java.lang.ClassNotFoundException, java.io.IOException
throws java.io.IOException
{
s.defaultWriteObject();
}

@ -998,7 +998,7 @@ public class BeanContextSupport extends BeanContextChildSupport
* @param oos the ObjectOutputStream
*/
private synchronized void writeObject(ObjectOutputStream oos) throws IOException, ClassNotFoundException {
private synchronized void writeObject(ObjectOutputStream oos) throws IOException {
serializing = true;
synchronized (BeanContext.globalHierarchyLock) {