浏览代码

Add Object type to Comparable implements declaration

This removes unchecked warnings when a List of
AnyObjectId objects or any of its subclasses are
passed to Collections.sort such as in PackWriter

Change-Id: I806732cee24349c75c0357a655df55b070f2f213
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v2.0.0.201206130900-r
Kevin Sawicki 12 年前
父节点
当前提交
a9133e55a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java 查看文件

@@ -57,7 +57,7 @@ import org.eclipse.jgit.util.NB;
* with this instance can alter at any time, if this instance is modified to
* represent a different object name.
*/
public abstract class AnyObjectId implements Comparable {
public abstract class AnyObjectId implements Comparable<Object> {

/**
* Compare to object identifier byte sequences for equality.

正在加载...
取消
保存