mirror of
https://github.com/google/nomulus
synced 2026-01-05 04:56:03 +00:00
Make ForeignKeyIndex java 7 compatible
ForeignKeyIndex.java would not compile when building with bazel and targeting 1.7. This change fixes the build issue.
This commit is contained in:
@@ -114,7 +114,7 @@ public abstract class ForeignKeyIndex<E extends EppResource> extends BackupGroup
|
||||
|
||||
/** Create a {@link ForeignKeyIndex} key for a resource. */
|
||||
public static Key<ForeignKeyIndex<?>> createKey(EppResource resource) {
|
||||
return Key.create(
|
||||
return Key.<ForeignKeyIndex<?>>create(
|
||||
RESOURCE_CLASS_TO_FKI_CLASS.get(resource.getClass()), resource.getForeignKey());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user