summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2014-04-04 07:30:15 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2014-04-05 08:39:19 -0400
commitfe397ad90fe0490d3534e0f02a0173ddb0e634f6 (patch)
tree9b3e5ab211bdace623ed4e4893e3b5cc1edb9f68 /org.eclipse.jgit
parentffb0f05d02d0afe25ae1ebd4a0166ee4909e4d59 (diff)
downloadjgit-fe397ad90fe0490d3534e0f02a0173ddb0e634f6.tar.gz
jgit-fe397ad90fe0490d3534e0f02a0173ddb0e634f6.zip
Don't use package private classes when overriding a public interface
Change-Id: If8522d4e02254766e3310a70e42badafa5ab9768 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefDatabase.java7
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefRename.java3
2 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefDatabase.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefDatabase.java
index 6784b493a9..593aaac15b 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefDatabase.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefDatabase.java
@@ -56,6 +56,7 @@ import org.eclipse.jgit.lib.ObjectIdRef;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.RefDatabase;
import org.eclipse.jgit.lib.RefRename;
+import org.eclipse.jgit.lib.RefUpdate;
import org.eclipse.jgit.lib.SymbolicRef;
import org.eclipse.jgit.revwalk.RevObject;
import org.eclipse.jgit.revwalk.RevTag;
@@ -211,7 +212,7 @@ public abstract class DfsRefDatabase extends RefDatabase {
}
@Override
- public DfsRefUpdate newUpdate(String refName, boolean detach)
+ public RefUpdate newUpdate(String refName, boolean detach)
throws IOException {
boolean detachingSymbolicRef = false;
Ref ref = getOneRef(refName);
@@ -233,8 +234,8 @@ public abstract class DfsRefDatabase extends RefDatabase {
@Override
public RefRename newRename(String fromName, String toName)
throws IOException {
- DfsRefUpdate src = newUpdate(fromName, true);
- DfsRefUpdate dst = newUpdate(toName, true);
+ RefUpdate src = newUpdate(fromName, true);
+ RefUpdate dst = newUpdate(toName, true);
return new DfsRefRename(src, dst);
}
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefRename.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefRename.java
index a4cb791550..d9c2bc7467 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefRename.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefRename.java
@@ -47,10 +47,11 @@ import java.io.IOException;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.RefRename;
+import org.eclipse.jgit.lib.RefUpdate;
import org.eclipse.jgit.lib.RefUpdate.Result;
final class DfsRefRename extends RefRename {
- DfsRefRename(DfsRefUpdate src, DfsRefUpdate dst) {
+ DfsRefRename(RefUpdate src, RefUpdate dst) {
super(src, dst);
}