mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02: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:
parent
8830224cc5
commit
6f00059a80
2 changed files with 39 additions and 25 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue