]> source.dussan.org Git - jgit.git/commitdiff
Add Object type to Comparable implements declaration 02/5902/3
authorKevin Sawicki <kevin@github.com>
Wed, 9 May 2012 17:41:40 +0000 (10:41 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 9 May 2012 22:32:47 +0000 (00:32 +0200)
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>
org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java

index 61cc15dec069b0ff9c10da45667d68242df9cb5f..49dc9147f6213adbf12a698e60e3a5e8da3a50bc 100644 (file)
@@ -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.