final boolean typeEquals(ObjectStreamClass_1_3_1 other) { return (suid == other.suid) && compareClassNames(name, other.name, '.'); }
/** * Return the actual (computed) serialVersionUID for this class. */ public static final long getActualSerialVersionUID(Class<?> clazz) { ObjectStreamClass_1_3_1 theosc = ObjectStreamClass_1_3_1.lookup(clazz); if (theosc != null) { return theosc.getActualSerialVersionUID(); } return 0; }
/** * Return the serialVersionUID for this class. The serialVersionUID defines a set of classes all with the same name * that have evolved from a common root class and agree to be serialized and deserialized using a common format. */ public static final long getSerialVersionUID(Class<?> clazz) { ObjectStreamClass_1_3_1 theosc = ObjectStreamClass_1_3_1.lookup(clazz); if (theosc != null) { return theosc.getSerialVersionUID(); } return 0; }
final boolean isCustomMarshaled() { return (hasWriteObject() || isExternalizable()); }
desc = findDescriptorFor(cl); if (desc != null) superdesc = lookup(superclass); if (serializable) externalizable = ((superdesc != null) && superdesc.isExternalizable()) || classExternalizable.isAssignableFrom(cl); if (externalizable) desc = new ObjectStreamClass_1_3_1(cl, superdesc, serializable, externalizable); desc.init(); return desc;
data.writeLong(computeStructuralUID(lookup(parent), parent)); if (osc.hasWriteObject()) data.writeInt(2); else ObjectStreamField[] fields = osc.getFields(); data.writeUTF(getSignature(f.getType()));
computeFieldInfo(); if (isNonSerializable()) actualSuid = computeStructuralUID(this, cl);
public int compare(Member o1, Member o2) { String s1 = o1.getName(); String s2 = o2.getName(); if (o1 instanceof Method) { s1 += getSignature((Method) o1); s2 += getSignature((Method) o2); } else if (o1 instanceof Constructor) { s1 += getSignature((Constructor<?>) o1); s2 += getSignature((Constructor<?>) o2); } return s1.compareTo(s2); } }
long actualLong = ObjectStreamClass_1_3_1.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) long declaredLong = ObjectStreamClass_1_3_1.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0)
private static void insertDescriptorFor(ObjectStreamClass_1_3_1 desc) { // Make sure not already present if (findDescriptorFor(desc.ofClass) != null) { return; } int hash = desc.ofClass.hashCode(); int index = (hash & 0x7FFFFFFF) % descriptorFor.length; ObjectStreamClassEntry e = new ObjectStreamClassEntry(desc); e.next = descriptorFor[index]; descriptorFor[index] = e; }
desc = findDescriptorFor(cl); if (desc != null) superdesc = lookup(superclass); if (serializable) externalizable = ((superdesc != null) && superdesc.isExternalizable()) || classExternalizable.isAssignableFrom(cl); if (externalizable) desc = new ObjectStreamClass_1_3_1(cl, superdesc, serializable, externalizable); desc.init(); return desc;
data.writeLong(computeStructuralUID(lookup(parent), parent)); if (osc.hasWriteObject()) data.writeInt(2); else ObjectStreamField[] fields = osc.getFields(); data.writeUTF(getSignature(f.getType()));
computeFieldInfo(); if (isNonSerializable()) actualSuid = computeStructuralUID(this, cl);
public int compare(Member o1, Member o2) { String s1 = o1.getName(); String s2 = o2.getName(); if (o1 instanceof Method) { s1 += getSignature((Method) o1); s2 += getSignature((Method) o2); } else if (o1 instanceof Constructor) { s1 += getSignature((Constructor<?>) o1); s2 += getSignature((Constructor<?>) o2); } return s1.compareTo(s2); } }
final boolean isCustomMarshaled() { return (hasWriteObject() || isExternalizable()); }
long actualLong = ObjectStreamClass_1_3_1.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) long declaredLong = ObjectStreamClass_1_3_1.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0)
private static void insertDescriptorFor(ObjectStreamClass_1_3_1 desc) { // Make sure not already present if (findDescriptorFor(desc.ofClass) != null) { return; } int hash = desc.ofClass.hashCode(); int index = (hash & 0x7FFFFFFF) % descriptorFor.length; ObjectStreamClassEntry e = new ObjectStreamClassEntry(desc); e.next = descriptorFor[index]; descriptorFor[index] = e; }
static String getSignature(Constructor<?> cons) { StringBuffer sb = new StringBuffer(); sb.append("("); Class<?>[] params = cons.getParameterTypes(); // avoid clone for (int j = 0; j < params.length; j++) { sb.append(getSignature(params[j])); } sb.append(")V"); return sb.toString(); }
/** * Return the actual (computed) serialVersionUID for this class. */ public static final long getActualSerialVersionUID(Class<?> clazz) { ObjectStreamClass_1_3_1 theosc = ObjectStreamClass_1_3_1.lookup(clazz); if (theosc != null) { return theosc.getActualSerialVersionUID(); } return 0; }
/** * Return the serialVersionUID for this class. The serialVersionUID defines a set of classes all with the same name * that have evolved from a common root class and agree to be serialized and deserialized using a common format. */ public static final long getSerialVersionUID(Class<?> clazz) { ObjectStreamClass_1_3_1 theosc = ObjectStreamClass_1_3_1.lookup(clazz); if (theosc != null) { return theosc.getSerialVersionUID(); } return 0; }