Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2012-11-08 13:17:13 +0000
committerRobin Stocker2012-11-08 13:18:21 +0000
commit106e8b87625cd1ad6b2cec14d676c23174422352 (patch)
tree27c93329c2df3470a954e78cc5d94b1b2bce4a3a
parentf3a8d7413c423966ea474e132b0d2c908d67ed2e (diff)
downloadjgit-106e8b87625cd1ad6b2cec14d676c23174422352.tar.gz
jgit-106e8b87625cd1ad6b2cec14d676c23174422352.tar.xz
jgit-106e8b87625cd1ad6b2cec14d676c23174422352.zip
Fix redundant null check warning in Repository
rev is always null because of `if (rev != null) return ...` above. Change-Id: I8168aefd344e0c4b0c68caea1a3daee66c07173b
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index 76f5378179..911b1f6a7c 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -697,7 +697,7 @@ public abstract class Repository {
return rev.copy();
if (name != null)
return name;
- if (rev == null && done == revstr.length())
+ if (done == revstr.length())
return null;
name = revstr.substring(done);
if (!Repository.isValidRefName("x/" + name))

Back to the top