< prev index next >

src/java.desktop/share/classes/sun/awt/shell/DefaultShellFolder.java

Print this page

        

*** 44,56 **** super(parent, f.getAbsolutePath()); } /** * This method is implemented to make sure that no instances ! * of <code>ShellFolder</code> are ever serialized. An instance of * this default implementation can always be represented with a ! * <code>java.io.File</code> object instead. * * @return a java.io.File replacement object. */ protected Object writeReplace() throws java.io.ObjectStreamException { return new File(getPath()); --- 44,56 ---- super(parent, f.getAbsolutePath()); } /** * This method is implemented to make sure that no instances ! * of {@code ShellFolder} are ever serialized. An instance of * this default implementation can always be represented with a ! * {@code java.io.File} object instead. * * @return a java.io.File replacement object. */ protected Object writeReplace() throws java.io.ObjectStreamException { return new File(getPath());
< prev index next >