X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fcojen%2Fclassfile%2FTypeDesc.java;h=cfc5a1deb0fcf7a303651c39782af93fc6e8742b;hp=084eb3dc85445cef536d561c0eec6cf6d1c2e002;hb=9a175feb652b2b7bba7afa540831b9076be3c10e;hpb=0b72d3e4ec886838314ffeba0fa201e32c0aae3e diff --git a/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java b/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java index 084eb3dc8..cfc5a1deb 100644 --- a/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java +++ b/bundles/org.simantics.scl.compiler/src/org/cojen/classfile/TypeDesc.java @@ -17,11 +17,6 @@ package org.cojen.classfile; import java.io.Serializable; -import java.io.Externalizable; -import java.io.ObjectOutput; -import java.io.ObjectInput; -import java.io.IOException; -import java.io.ObjectStreamException; import java.lang.ref.SoftReference; import java.lang.reflect.Array; import java.util.Collections; @@ -510,10 +505,6 @@ public abstract class TypeDesc extends Descriptor implements Serializable { return false; } - Object writeReplace() throws ObjectStreamException { - return new External(mDescriptor); - } - private static class PrimitiveType extends TypeDesc { private transient final int mCode; private transient TypeDesc mArrayType; @@ -895,27 +886,4 @@ public abstract class TypeDesc extends Descriptor implements Serializable { } } } - - private static class External implements Externalizable { - private String mDescriptor; - - public External() { - } - - public External(String desc) { - mDescriptor = desc; - } - - public void writeExternal(ObjectOutput out) throws IOException { - out.writeUTF(mDescriptor); - } - - public void readExternal(ObjectInput in) throws IOException { - mDescriptor = in.readUTF(); - } - - public Object readResolve() throws ObjectStreamException { - return forDescriptor(mDescriptor); - } - } }