diff options
author | Kevin Sawicki <kevin@github.com> | 2012-05-09 10:41:40 -0700 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2012-05-10 00:32:47 +0200 |
commit | a9133e55a451f3441ee8dc9a2dcee2c8c48c22b6 (patch) | |
tree | 7cdad6e2b41c297703e658c644f2158df42de9d1 | |
parent | e3335cfa6bb22679f5ab0170e4086b7ef88fb2d5 (diff) | |
download | jgit-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.java | 2 |
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. |