I'd really like to make our build script blow up if we accidentally put in
duplicate colorIds, but let's at least scream & not put the new color in. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@875 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -90,6 +90,9 @@ public class ColorPository implements Serializable
|
||||
if (record.colorId > 127) {
|
||||
log.warning("Refusing to add color record; colorId > 127",
|
||||
"class", this, "record", record);
|
||||
} else if (colors.containsKey(record.colorId)) {
|
||||
log.warning("Refusing to add duplicate colorId",
|
||||
"class", this, "record", record, "existing", colors.get(record.colorId));
|
||||
} else {
|
||||
record.cclass = this;
|
||||
colors.put(record.colorId, record);
|
||||
|
||||
Reference in New Issue
Block a user