SubmoduleOp: Make search superproject method private

hasSuperproject() is used to check preconditions during project deletion.
Hence, making superProjectSubscriptionsForSubmoduleBranch() private to
hide details of implementation methods and benefit the split of
SubmoduleOp which will happen later in the change series.

Change-Id: I518a0ab3dcbfbce25554e06afba8e8ffc2feb6f5
This commit is contained in:
Yunjie Li
2020-05-19 10:26:46 -07:00
parent 3c3a9337bb
commit ee62a0ed21
2 changed files with 2 additions and 3 deletions

View File

@@ -364,8 +364,7 @@ public class SubmoduleOp {
return ret;
}
@UsedAt(UsedAt.Project.PLUGIN_DELETE_PROJECT)
public Collection<SubmoduleSubscription> superProjectSubscriptionsForSubmoduleBranch(
private Collection<SubmoduleSubscription> superProjectSubscriptionsForSubmoduleBranch(
BranchNameKey srcBranch) throws IOException {
logger.atFine().log("Calculating possible superprojects for %s", srcBranch);
Collection<SubmoduleSubscription> ret = new ArrayList<>();