JAL-3032 adds Java 8 functionality (2/2)
[jalview.git] / src2 / net / miginfocom / layout / DimConstraint.java
similarity index 96%
rename from src/net/miginfocom/layout/DimConstraint.java
rename to src2/net/miginfocom/layout/DimConstraint.java
index 0ea29df..c36d88c 100644 (file)
@@ -41,7 +41,7 @@ import java.io.ObjectStreamException;
 
 /** A simple value holder for a constraint for one dimension.
  */
-public final class DimConstraint// implements Externalizable
+public final class DimConstraint implements Externalizable
 {
        /** How this entity can be resized in the dimension that this constraint represents.
         */
@@ -453,25 +453,25 @@ public final class DimConstraint// implements Externalizable
                return ret;
        }
 
-//     // ************************************************
-//     // 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() == DimConstraint.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() == DimConstraint.class)
+                       LayoutUtil.writeAsXML(out, this);
+       }
 }