mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Fix some direct uses of ForeignKey(C/H/D)Index
Mostly these are calls to ForeignKeyIndex.create() (a static method) via subclasses, which is pretty misleading in this case since the type of the return value has nothing to do with the subclass you're qualifying the static method call with (the returned type depends only on the type of the EppResource parameter). Note however though that while the style guide indeed prohibits qualifying static member references with things other than the class name, the subclassing case is apparently not considered subject to that prohibition in general: https://groups.google.com[]d/msg/java-style/8ViX-Rh2_sc/48n2lz5nAAAJ ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154331605
This commit is contained in:
parent
d30f9411d8
commit
40fa9ff022
3 changed files with 6 additions and 13 deletions
|
@ -35,7 +35,6 @@ import google.registry.model.domain.DomainApplication;
|
|||
import google.registry.model.domain.DomainBase;
|
||||
import google.registry.model.index.EppResourceIndex;
|
||||
import google.registry.model.index.ForeignKeyIndex;
|
||||
import google.registry.model.index.ForeignKeyIndex.ForeignKeyDomainIndex;
|
||||
import google.registry.model.registry.Registry;
|
||||
import google.registry.model.registry.Registry.TldType;
|
||||
import google.registry.request.Action;
|
||||
|
@ -137,7 +136,7 @@ public class DeleteProberDataAction implements Runnable {
|
|||
}
|
||||
|
||||
final Key<EppResourceIndex> eppIndex = Key.create(EppResourceIndex.create(domainKey));
|
||||
final Key<ForeignKeyIndex<?>> fki = ForeignKeyDomainIndex.createKey(domain);
|
||||
final Key<ForeignKeyIndex<?>> fki = ForeignKeyIndex.createKey(domain);
|
||||
|
||||
int entitiesDeleted = ofy().transact(new Work<Integer>() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue