summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit.http
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2013-03-22 21:36:10 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2013-03-22 21:36:10 +0100
commit9b63f324413fb093313c3f33e52627b1c97cd6f6 (patch)
tree882d3220312c1ff0525165053ced634a12ca8fcd /org.eclipse.jgit.junit.http
parenta040a8f127b7e359f72cada4f656fb933a0a70d3 (diff)
downloadjgit-9b63f324413fb093313c3f33e52627b1c97cd6f6.tar.gz
jgit-9b63f324413fb093313c3f33e52627b1c97cd6f6.zip
SimpleHttpServer API shouldn't expose internals
Change-Id: I5963ae720f33cb148de08b4c64d02c81d6791139 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit.http')
-rw-r--r--org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/SimpleHttpServer.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/SimpleHttpServer.java b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/SimpleHttpServer.java
index e74a1ee07e..e550e6c567 100644
--- a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/SimpleHttpServer.java
+++ b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/SimpleHttpServer.java
@@ -52,7 +52,6 @@ import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jgit.errors.RepositoryNotFoundException;
import org.eclipse.jgit.http.server.GitServlet;
-import org.eclipse.jgit.internal.storage.file.FileRepository;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.transport.URIish;
import org.eclipse.jgit.transport.resolver.RepositoryResolver;
@@ -66,11 +65,11 @@ public class SimpleHttpServer {
AppServer server;
- private final FileRepository db;
+ private final Repository db;
private URIish uri;
- public SimpleHttpServer(FileRepository repository) {
+ public SimpleHttpServer(Repository repository) {
this.db = repository;
server = new AppServer();
}
@@ -109,7 +108,7 @@ public class SimpleHttpServer {
return ctx;
}
- private static String nameOf(final FileRepository db) {
+ private static String nameOf(final Repository db) {
return db.getDirectory().getName();
}