mirror of
https://github.com/google/nomulus
synced 2026-01-09 15:43:52 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user