I came across empty writeObject() and readObject() methods in
javax.swing.ActionMap. Since serialization is not supported in Swing
anyway, I removed these methods thus letting this fall back to standard
serialization.

2006-04-10  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/ActionMap.java
        (readObject): Removed.
        (writeObject): Removed.

/Roman

Index: javax/swing/ActionMap.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/ActionMap.java,v
retrieving revision 1.13
diff -u -1 -0 -r1.13 ActionMap.java
--- javax/swing/ActionMap.java	14 Nov 2005 20:23:56 -0000	1.13
+++ javax/swing/ActionMap.java	10 Apr 2006 10:09:06 -0000
@@ -188,37 +188,11 @@
 
     if (parent != null)
       set.addAll(Arrays.asList(parent.allKeys()));
 
     set.addAll(actionMap.keySet());
     if (set.size() != 0)
       return set.toArray();
     return null;
   }
 
-  /**
-   * writeObject
-   *
-   * @param stream the stream to write to
-   *
-   * @exception IOException If an error occurs
-   */
-  private void writeObject(ObjectOutputStream stream)
-    throws IOException
-  {
-    // TODO
-  }
-
-  /**
-   * readObject
-   *
-   * @param stream the stream to read from
-   *
-   * @exception ClassNotFoundException If the serialized class cannot be found
-   * @exception IOException If an error occurs
-   */
-  private void readObject(ObjectInputStream stream)
-    throws ClassNotFoundException, IOException
-  {
-    // TODO
-  }
 }

Reply via email to