We can't allow the primary ctor to be called for EntryUpdated/RemovedEvent
because that will overwrite the hackery we do with _oldEntry. Oh hackery, how we love you so. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6586 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -48,7 +48,14 @@ public class EntryRemovedEvent<T extends DSet.Entry> extends EntryEvent<T>
|
|||||||
{
|
{
|
||||||
super(targetOid, name);
|
super(targetOid, name);
|
||||||
_key = key;
|
_key = key;
|
||||||
_oldEntry = oldEntry;
|
}
|
||||||
|
|
||||||
|
/** For unserialization. */
|
||||||
|
public EntryRemovedEvent ()
|
||||||
|
{
|
||||||
|
super(0, null);
|
||||||
|
// we can't allow our primary ctor to be called during unserialization, or it will wipe out
|
||||||
|
// the hackery we do with _oldEntry
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -52,6 +52,14 @@ public class EntryUpdatedEvent<T extends DSet.Entry> extends EntryEvent<T>
|
|||||||
_oldEntry = oldEntry;
|
_oldEntry = oldEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** For unserialization. */
|
||||||
|
public EntryUpdatedEvent ()
|
||||||
|
{
|
||||||
|
super(0, null);
|
||||||
|
// we can't allow our primary ctor to be called during unserialization, or it will wipe out
|
||||||
|
// the hackery we do with _oldEntry
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Comparable<?> getKey ()
|
public Comparable<?> getKey ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user