[errorprone] TagCommand: Remove unused parameter of private method
See https://errorprone.info/bugpattern/UnusedVariable Change-Id: I7e8aae3494ce60dbeb474f6bead0817c36276e69
This commit is contained in:
parent
28d4b34902
commit
2d16df1a07
|
@ -33,7 +33,6 @@
|
||||||
import org.eclipse.jgit.lib.RefUpdate;
|
import org.eclipse.jgit.lib.RefUpdate;
|
||||||
import org.eclipse.jgit.lib.RefUpdate.Result;
|
import org.eclipse.jgit.lib.RefUpdate.Result;
|
||||||
import org.eclipse.jgit.lib.Repository;
|
import org.eclipse.jgit.lib.Repository;
|
||||||
import org.eclipse.jgit.lib.RepositoryState;
|
|
||||||
import org.eclipse.jgit.lib.TagBuilder;
|
import org.eclipse.jgit.lib.TagBuilder;
|
||||||
import org.eclipse.jgit.revwalk.RevObject;
|
import org.eclipse.jgit.revwalk.RevObject;
|
||||||
import org.eclipse.jgit.revwalk.RevWalk;
|
import org.eclipse.jgit.revwalk.RevWalk;
|
||||||
|
@ -108,9 +107,7 @@ protected TagCommand(Repository repo) {
|
||||||
public Ref call() throws GitAPIException, ConcurrentRefUpdateException,
|
public Ref call() throws GitAPIException, ConcurrentRefUpdateException,
|
||||||
InvalidTagNameException, NoHeadException {
|
InvalidTagNameException, NoHeadException {
|
||||||
checkCallable();
|
checkCallable();
|
||||||
|
processOptions();
|
||||||
RepositoryState state = repo.getRepositoryState();
|
|
||||||
processOptions(state);
|
|
||||||
|
|
||||||
try (RevWalk revWalk = new RevWalk(repo)) {
|
try (RevWalk revWalk = new RevWalk(repo)) {
|
||||||
// if no id is set, we should attempt to use HEAD
|
// if no id is set, we should attempt to use HEAD
|
||||||
|
@ -197,9 +194,6 @@ private Ref updateTagRef(ObjectId tagId, RevWalk revWalk,
|
||||||
* Sets default values for not explicitly specified options. Then validates
|
* Sets default values for not explicitly specified options. Then validates
|
||||||
* that all required data has been provided.
|
* that all required data has been provided.
|
||||||
*
|
*
|
||||||
* @param state
|
|
||||||
* the state of the repository we are working on
|
|
||||||
*
|
|
||||||
* @throws InvalidTagNameException
|
* @throws InvalidTagNameException
|
||||||
* if the tag name is null or invalid
|
* if the tag name is null or invalid
|
||||||
* @throws ServiceUnavailableException
|
* @throws ServiceUnavailableException
|
||||||
|
@ -208,7 +202,7 @@ private Ref updateTagRef(ObjectId tagId, RevWalk revWalk,
|
||||||
* if the tag should be signed but {@code gpg.format} is not
|
* if the tag should be signed but {@code gpg.format} is not
|
||||||
* {@link GpgFormat#OPENPGP}
|
* {@link GpgFormat#OPENPGP}
|
||||||
*/
|
*/
|
||||||
private void processOptions(RepositoryState state)
|
private void processOptions()
|
||||||
throws InvalidTagNameException, ServiceUnavailableException,
|
throws InvalidTagNameException, ServiceUnavailableException,
|
||||||
UnsupportedSigningFormatException {
|
UnsupportedSigningFormatException {
|
||||||
if (name == null
|
if (name == null
|
||||||
|
|
Loading…
Reference in New Issue