X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Futil%2FHash.java;h=6952e827021af0c7104cff0e5e38cae0d870c268;hb=e1076a62356975f3b8c308146185fefd0e23fa2d;hp=4b3887065202aba7e865fc2b54055303e64bc249;hpb=1c3169cf69a08e5920e5f1c3e3e153b4da5a2de3;p=org.ibex.util.git diff --git a/src/org/ibex/util/Hash.java b/src/org/ibex/util/Hash.java index 4b38870..6952e82 100644 --- a/src/org/ibex/util/Hash.java +++ b/src/org/ibex/util/Hash.java @@ -16,13 +16,14 @@ import java.util.*; * * Not threadsafe. */ -public class Hash { +public class Hash implements java.io.Serializable { /** this object is inserted as key in a slot when the * corresponding value is removed -- this ensures that the * probing sequence for any given key remains the same even if * other keys are removed. */ - private static Object placeholder = new Object(); + // FIXME: this should have been static except that that makes it nonserializable + private Object placeholder = new java.io.Serializable() { }; /** the number of entries with at least one non-null key */ private int usedslots = 0;