summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki <kevin@github.com>2012-05-09 10:41:40 -0700
committerMatthias Sohn <matthias.sohn@sap.com>2012-05-10 00:32:47 +0200
commita9133e55a451f3441ee8dc9a2dcee2c8c48c22b6 (patch)
tree7cdad6e2b41c297703e658c644f2158df42de9d1
parente3335cfa6bb22679f5ab0170e4086b7ef88fb2d5 (diff)
downloadjgit-a9133e55a451f3441ee8dc9a2dcee2c8c48c22b6.tar.gz
jgit-a9133e55a451f3441ee8dc9a2dcee2c8c48c22b6.zip
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java
index 61cc15dec0..49dc9147f6 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java
+++ b/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.