Added duplicate property name check, just in case
This commit is contained in:
parent
29c3c4b22b
commit
0596f59304
@ -265,6 +265,8 @@ public class EntityPropertyRegistryImpl implements EntityPropertyRegistry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private <T> void register(EntityPropertyImpl<?> property) {
|
private <T> void register(EntityPropertyImpl<?> property) {
|
||||||
|
if (byName.containsKey(property.getName()))
|
||||||
|
throw new IllegalArgumentException("Duplicate property name: " + property.getName());
|
||||||
byName.put(property.getName(), property);
|
byName.put(property.getName(), property);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user