CreateBranch: Use extension API's BranchInput
Upstream moved from static inner class to API.
(https://gerrit-review.googlesource.com/#/c/78390)
Change-Id: I3880a9617a3671919fc108d6caa279dd6b7fac91
diff --git a/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java b/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java
index 33a642a..de5014a 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java
@@ -24,6 +24,7 @@
package com.googlesource.gerrit.plugins.refprotection;
import com.google.gerrit.extensions.annotations.PluginName;
+import com.google.gerrit.extensions.api.projects.BranchInput;
import com.google.gerrit.extensions.restapi.AuthException;
import com.google.gerrit.extensions.restapi.BadRequestException;
import com.google.gerrit.extensions.restapi.ResourceConflictException;
@@ -151,7 +152,7 @@
log.error("Unknown error while creating backup tag");
}
} else {
- CreateBranch.Input input = new CreateBranch.Input();
+ BranchInput input = new BranchInput();
input.ref = backupRef;
// We need to parse the commit to ensure if it's a tag, we get the
// commit the tag points to!