mirror of
https://github.com/google/nomulus.git
synced 2025-07-22 02:36:03 +02:00
Fix semantic merge conflict (#781)
Note: the schema change isn't from anything I did, I think, but from an unrelated semantic merge conflict
This commit is contained in:
parent
af3fad888f
commit
88c5b840c5
2 changed files with 10 additions and 4 deletions
|
@ -272,6 +272,7 @@ public class HistoryEntry extends ImmutableObject implements Buildable {
|
|||
return new Builder().copyFrom(this).build();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public HistoryEntry toChildHistoryEntity() {
|
||||
String parentKind = getParent().getKind();
|
||||
final HistoryEntry resultEntity;
|
||||
|
@ -280,19 +281,23 @@ public class HistoryEntry extends ImmutableObject implements Buildable {
|
|||
resultEntity =
|
||||
new DomainHistory.Builder()
|
||||
.copyFrom(this)
|
||||
.setDomainRepoId(VKey.create(DomainBase.class, parent.getName(), parent))
|
||||
.setDomainRepoId(
|
||||
VKey.create(DomainBase.class, parent.getName(), (Key<DomainBase>) parent))
|
||||
.build();
|
||||
} else if (parentKind.equals(getKind(HostResource.class))) {
|
||||
resultEntity =
|
||||
new HostHistory.Builder()
|
||||
.copyFrom(this)
|
||||
.setHostRepoId(VKey.create(HostResource.class, parent.getName(), parent))
|
||||
.setHostRepoId(
|
||||
VKey.create(HostResource.class, parent.getName(), (Key<HostResource>) parent))
|
||||
.build();
|
||||
} else if (parentKind.equals(getKind(ContactResource.class))) {
|
||||
resultEntity =
|
||||
new ContactHistory.Builder()
|
||||
.copyFrom(this)
|
||||
.setContactRepoId(VKey.create(ContactResource.class, parent.getName(), parent))
|
||||
.setContactRepoId(
|
||||
VKey.create(
|
||||
ContactResource.class, parent.getName(), (Key<ContactResource>) parent))
|
||||
.build();
|
||||
} else {
|
||||
throw new IllegalStateException(
|
||||
|
|
|
@ -255,6 +255,7 @@ class google.registry.model.domain.DomainContent {
|
|||
java.util.Set<google.registry.model.eppcommon.StatusValue> status;
|
||||
java.util.Set<google.registry.persistence.VKey<google.registry.model.host.HostResource>> nsHosts;
|
||||
java.util.Set<java.lang.String> subordinateHosts;
|
||||
org.joda.time.DateTime autorenewEndTime;
|
||||
org.joda.time.DateTime deletionTime;
|
||||
org.joda.time.DateTime lastEppUpdateTime;
|
||||
org.joda.time.DateTime lastTransferTime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue