Browse Source

Don't use package private classes when overriding a public interface

Change-Id: If8522d4e02254766e3310a70e42badafa5ab9768
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
stable-3.4
Robin Rosenberg 11 years ago
parent
commit
fe397ad90f
  1. 7
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefDatabase.java
  2. 3
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsRefRename.java

7
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.Ref;
import org.eclipse.jgit.lib.RefDatabase; import org.eclipse.jgit.lib.RefDatabase;
import org.eclipse.jgit.lib.RefRename; import org.eclipse.jgit.lib.RefRename;
import org.eclipse.jgit.lib.RefUpdate;
import org.eclipse.jgit.lib.SymbolicRef; import org.eclipse.jgit.lib.SymbolicRef;
import org.eclipse.jgit.revwalk.RevObject; import org.eclipse.jgit.revwalk.RevObject;
import org.eclipse.jgit.revwalk.RevTag; import org.eclipse.jgit.revwalk.RevTag;
@ -211,7 +212,7 @@ public abstract class DfsRefDatabase extends RefDatabase {
} }
@Override @Override
public DfsRefUpdate newUpdate(String refName, boolean detach) public RefUpdate newUpdate(String refName, boolean detach)
throws IOException { throws IOException {
boolean detachingSymbolicRef = false; boolean detachingSymbolicRef = false;
Ref ref = getOneRef(refName); Ref ref = getOneRef(refName);
@ -233,8 +234,8 @@ public abstract class DfsRefDatabase extends RefDatabase {
@Override @Override
public RefRename newRename(String fromName, String toName) public RefRename newRename(String fromName, String toName)
throws IOException { throws IOException {
DfsRefUpdate src = newUpdate(fromName, true); RefUpdate src = newUpdate(fromName, true);
DfsRefUpdate dst = newUpdate(toName, true); RefUpdate dst = newUpdate(toName, true);
return new DfsRefRename(src, dst); return new DfsRefRename(src, dst);
} }

3
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.ObjectId;
import org.eclipse.jgit.lib.RefRename; import org.eclipse.jgit.lib.RefRename;
import org.eclipse.jgit.lib.RefUpdate;
import org.eclipse.jgit.lib.RefUpdate.Result; import org.eclipse.jgit.lib.RefUpdate.Result;
final class DfsRefRename extends RefRename { final class DfsRefRename extends RefRename {
DfsRefRename(DfsRefUpdate src, DfsRefUpdate dst) { DfsRefRename(RefUpdate src, RefUpdate dst) {
super(src, dst); super(src, dst);
} }

Loading…
Cancel
Save