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 1538d277b..37e31ef47 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -1393,7 +1393,7 @@ public abstract class Repository {
* $GIT_DIR/MERGE_HEAD or null
to delete the file
* @throws IOException
*/
- public void writeMergeHeads(List heads) throws IOException {
+ public void writeMergeHeads(List extends ObjectId> heads) throws IOException {
writeHeadsFile(heads, Constants.MERGE_HEAD);
}
@@ -1590,7 +1590,7 @@ public abstract class Repository {
* @throws FileNotFoundException
* @throws IOException
*/
- private void writeHeadsFile(List heads, String filename)
+ private void writeHeadsFile(List extends ObjectId> heads, String filename)
throws FileNotFoundException, IOException {
File headsFile = new File(getDirectory(), filename);
if (heads != null) {