Log a warning to go with our stack trace and add a comment to explain why we
don't in the other case. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4630 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -780,6 +780,7 @@ public class DObject
|
||||
boolean alreadyApplied = false;
|
||||
if (_omgr != null && _omgr.isManager(this)) {
|
||||
if (!set.add(entry)) {
|
||||
// DSet will have logged a warning
|
||||
Thread.dumpStack();
|
||||
}
|
||||
alreadyApplied = true;
|
||||
@@ -799,6 +800,7 @@ public class DObject
|
||||
if (_omgr != null && _omgr.isManager(this)) {
|
||||
oldEntry = set.removeKey(key);
|
||||
if (oldEntry == null) {
|
||||
Log.warning("Requested to remove non-element [set=" + name + ", key=" + key + "].");
|
||||
Thread.dumpStack();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user