Removal of serialVersionUID which was not used correctly:

Rhino never claimed to support binary compatibility in the serialized objects and it is better to use the system generated ids always to catch errors about incompatible changes ASAP.
This commit is contained in:
igor%mir2.org 2004-11-22 13:23:03 +00:00
parent 3859082191
commit 3f2ace010a
4 changed files with 0 additions and 9 deletions

View File

@ -43,8 +43,6 @@ import org.mozilla.javascript.debug.DebuggableScript;
final class InterpreterData implements Serializable, DebuggableScript
{
static final long serialVersionUID = 4815333329084415557L;
static final int INITIAL_MAX_ICODE_LENGTH = 1024;
static final int INITIAL_STRINGTABLE_SIZE = 64;
static final int INITIAL_NUMBERTABLE_SIZE = 64;

View File

@ -373,8 +373,6 @@ public class ObjArray implements Serializable
}
}
static final long serialVersionUID = -8887981051569446902L;
// Number of data elements
private int size;

View File

@ -455,8 +455,6 @@ public class ObjToIntMap implements Serializable {
}
}
static final long serialVersionUID = 3396438333234169727L;
// A == golden_ratio * (1 << 32) = ((sqrt(5) - 1) / 2) * (1 << 32)
// See Knuth etc.
private static final int A = 0x9e3779b9;

View File

@ -429,9 +429,6 @@ public class UintMap implements Serializable {
}
}
static final long serialVersionUID = -6916326879143724506L;
// A == golden_ratio * (1 << 32) = ((sqrt(5) - 1) / 2) * (1 << 32)
// See Knuth etc.
private static final int A = 0x9e3779b9;