Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2016-03-15 10:59:06 -0400
committerGerrit Code Review @ Eclipse.org2016-03-15 10:59:07 -0400
commitf737c86f7f616049671977b054a5d62d0fa36348 (patch)
treed77bbfef018c240162ccb19ed77f3590062f41f4
parentd08427bfba4d2372b0375fcf2fc833153c687c85 (diff)
parentbef8874d54c77f2d39c942eecda15aa827a9e6c8 (diff)
downloadegit-f737c86f7f616049671977b054a5d62d0fa36348.tar.gz
egit-f737c86f7f616049671977b054a5d62d0fa36348.tar.xz
egit-f737c86f7f616049671977b054a5d62d0fa36348.zip
Merge "Document that hasGerritConfiguration() needs non-null repository"
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java
index ff72439f7..36267f0f1 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/ResourcePropertyTester.java
@@ -20,6 +20,7 @@ import org.eclipse.core.resources.IResource;
import org.eclipse.egit.core.internal.gerrit.GerritUtil;
import org.eclipse.egit.core.project.RepositoryMapping;
import org.eclipse.egit.ui.internal.trace.GitTraceLocation;
+import org.eclipse.jgit.annotations.NonNull;
import org.eclipse.jgit.lib.Config;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Repository;
@@ -156,7 +157,8 @@ public class ResourcePropertyTester extends PropertyTester {
* @param repository
* @return {@code true} if repository has been configured for Gerrit
*/
- public static boolean hasGerritConfiguration(Repository repository) {
+ public static boolean hasGerritConfiguration(
+ @NonNull Repository repository) {
Config config = repository.getConfig();
if (GerritUtil.getCreateChangeId(config))
return true;

Back to the top