mirror of
https://github.com/google/nomulus
synced 2026-01-09 23:47:49 +00:00
Make the allowed-on restrictions in StatusValue easier to read
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146671718
This commit is contained in:
@@ -246,7 +246,7 @@ public abstract class EppResource extends BackupGroupRoot implements Buildable {
|
||||
Class<? extends EppResource> resourceClass = getInstance().getClass();
|
||||
for (StatusValue statusValue : nullToEmpty(statusValues)) {
|
||||
checkArgument(
|
||||
!statusValue.isForbiddenOn(resourceClass),
|
||||
statusValue.isAllowedOn(resourceClass),
|
||||
"The %s status cannot be set on %s",
|
||||
statusValue,
|
||||
resourceClass.getSimpleName());
|
||||
|
||||
Reference in New Issue
Block a user