Remove unknown val

This commit is contained in:
René Pfeuffer
2019-03-29 11:06:10 +01:00
parent b14eadb13d
commit 2a19313df5
2 changed files with 2 additions and 4 deletions

View File

@@ -37,7 +37,6 @@ package sonia.scm.repository.spi;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Strings;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.common.value.qual.UnknownVal;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.Ref;
@@ -118,8 +117,8 @@ public class GitBranchesCommand extends AbstractGitCommand implements BranchesCo
}
}
@UnknownVal
Optional<Ref> getRepositoryHeadRef(Git git) {
return GitUtil.getRepositoryHeadRef(git.getRepository());
}
}

View File

@@ -1,6 +1,5 @@
package sonia.scm.repository.spi;
import org.checkerframework.common.value.qual.UnknownVal;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.ListBranchCommand;
import org.eclipse.jgit.api.errors.GitAPIException;
@@ -57,7 +56,7 @@ class GitBranchesCommandTest {
}
@Override
@UnknownVal Optional<Ref> getRepositoryHeadRef(Git git) {
Optional<Ref> getRepositoryHeadRef(Git git) {
return of(master);
}
};