JAL-3032 adds Java 8 functionality (2/2)
[jalview.git] / src2 / net / miginfocom / layout / LC.java
similarity index 98%
rename from src/net/miginfocom/layout/LC.java
rename to src2/net/miginfocom/layout/LC.java
index 3c8fc69..b40fa75 100644 (file)
@@ -1,5 +1,6 @@
 package net.miginfocom.layout;
 
+import java.io.*;
 /*
  * License (BSD):
  * ==============
@@ -34,11 +35,9 @@ package net.miginfocom.layout;
  *         Date: 2006-sep-08
  */
 
-
-
 /** Contains the constraints for an instance of the {@link LC} layout manager.
  */
-public final class LC //implements Externalizable
+public final class LC implements Externalizable
 {
        // See the corresponding set/get method for documentation of the property!
 
@@ -1020,26 +1019,26 @@ public final class LC //implements Externalizable
                setHeight(LayoutUtil.derive(getHeight(), null, null, ConstraintParser.parseUnitValue(height, false)));
                return this;
        }
-//
-//     // ************************************************
-//     // Persistence Delegate and Serializable combined.
-//     // ************************************************
-//
-//     private Object readResolve() throws ObjectStreamException
-//     {
-//             return LayoutUtil.getSerializedObject(this);
-//     }
-//
-//     @Override
-//     public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
-//     {
-//             LayoutUtil.setSerializedObject(this, LayoutUtil.readAsXML(in));
-//     }
-//
-//     @Override
-//     public void writeExternal(ObjectOutput out) throws IOException
-//     {
-//             if (getClass() == LC.class)
-//                     LayoutUtil.writeAsXML(out, this);
-//     }
+
+       // ************************************************
+       // Persistence Delegate and Serializable combined.
+       // ************************************************
+
+       private Object readResolve() throws ObjectStreamException
+       {
+               return LayoutUtil.getSerializedObject(this);
+       }
+
+       @Override
+       public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
+       {
+               LayoutUtil.setSerializedObject(this, LayoutUtil.readAsXML(in));
+       }
+
+       @Override
+       public void writeExternal(ObjectOutput out) throws IOException
+       {
+               if (getClass() == LC.class)
+                       LayoutUtil.writeAsXML(out, this);
+       }
 }