Java Code Examples for com.sun.corba.se.impl.io.ObjectStreamClass#getSerialVersionUID()
The following examples show how to use
com.sun.corba.se.impl.io.ObjectStreamClass#getSerialVersionUID() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ObjectStreamClassUtil_1_3.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 2
Source File: RepositoryId.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 3
Source File: ObjectStreamClassUtil_1_3.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 4
Source File: RepositoryId.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 5
Source File: ObjectStreamClassUtil_1_3.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 6
Source File: RepositoryId.java From hottub with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 7
Source File: ObjectStreamClassUtil_1_3.java From hottub with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 8
Source File: RepositoryId.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 9
Source File: ObjectStreamClassUtil_1_3.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 10
Source File: RepositoryId.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 11
Source File: ObjectStreamClassUtil_1_3.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 12
Source File: RepositoryId.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 13
Source File: ObjectStreamClassUtil_1_3.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 14
Source File: RepositoryId.java From JDKSourceCode1.8 with MIT License | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 15
Source File: ObjectStreamClassUtil_1_3.java From JDKSourceCode1.8 with MIT License | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 16
Source File: RepositoryId.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 17
Source File: ObjectStreamClassUtil_1_3.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 18
Source File: RepositoryId.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }
Example 19
Source File: ObjectStreamClassUtil_1_3.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static long computeSerialVersionUID(final Class cl) { long csuid = ObjectStreamClass.getSerialVersionUID(cl); if (csuid == 0) return csuid; // for non-serializable/proxy classes csuid = (ObjectStreamClassUtil_1_3.getSerialVersion(csuid, cl).longValue()); return csuid; }
Example 20
Source File: RepositoryId.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
private static String createHashString(java.lang.Class clazz) { if (clazz.isInterface() || !java.io.Serializable.class.isAssignableFrom(clazz)) return kInterfaceHashCode; //ObjectStreamClass osc = ObjectStreamClass.lookup(clazz); long actualLong = ObjectStreamClass.getActualSerialVersionUID(clazz); String hash = null; if (actualLong == 0) hash = kInterfaceOnlyHashStr; else if (actualLong == 1) hash = kExternalizableHashStr; else hash = Long.toHexString(actualLong).toUpperCase(); while(hash.length() < 16){ hash = "0" + hash; } long declaredLong = ObjectStreamClass.getSerialVersionUID(clazz); String declared = null; if (declaredLong == 0) declared = kInterfaceOnlyHashStr; else if (declaredLong == 1) declared = kExternalizableHashStr; else declared = Long.toHexString(declaredLong).toUpperCase(); while (declared.length() < 16){ declared = "0" + declared; } hash = hash + ":" + declared; return ":" + hash; }