Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg2012-06-06 00:28:06 +0000
committerMatthias Sohn2012-06-06 07:44:39 +0000
commite2513558970ae47234298fdae892dc60cadb17e6 (patch)
tree6d9ca0bc96b11ed5587f89c2765d555dd8f04494 /org.eclipse.jgit.junit/src/org/eclipse/jgit/junit
parent4e5944fbf8579fddc8b81ae11484b392cc6fc527 (diff)
downloadjgit-e2513558970ae47234298fdae892dc60cadb17e6.tar.gz
jgit-e2513558970ae47234298fdae892dc60cadb17e6.tar.xz
jgit-e2513558970ae47234298fdae892dc60cadb17e6.zip
Get rid of warnings about empty statments
In HtttpAuthMethod there were comments, but not in a style that Eclipse recognizes. Change-Id: I64f55b27143f8badcefbb419d3951f2a26b87d5f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit/src/org/eclipse/jgit/junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
index f4a3a6289d..1afc6d808d 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
@@ -459,9 +459,13 @@ public class TestRepository<R extends Repository> {
*/
public <T extends AnyObjectId> T update(String ref, T obj) throws Exception {
if (Constants.HEAD.equals(ref)) {
+ // nothing
} else if ("FETCH_HEAD".equals(ref)) {
+ // nothing
} else if ("MERGE_HEAD".equals(ref)) {
+ // nothing
} else if (ref.startsWith(Constants.R_REFS)) {
+ // nothing
} else
ref = Constants.R_HEADS + ref;
@@ -537,7 +541,9 @@ public class TestRepository<R extends Repository> {
*/
public BranchBuilder branch(String ref) {
if (Constants.HEAD.equals(ref)) {
+ // nothing
} else if (ref.startsWith(Constants.R_REFS)) {
+ // nothing
} else
ref = Constants.R_HEADS + ref;
return new BranchBuilder(ref);

Back to the top